You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When overriding a route, I can't edit the success notification:
Actual behavior
Here is my code:
# lib/forest_liana/controllers/organizations_controller.rbifForestLiana::UserSpace.const_defined?("OrganizationController")ForestLiana::UserSpace::OrganizationController.class_evaldodefdestroyorganization_id=params[:id]Organizations::DestroyWorker.perform_async(organization_id)renderstatus: 200,json: {success: "The organization #{organization_id} will be deleted soon!"}endend
I always get "Organization deleted!" as notification
I've tried several way to render a success messages but non of them worked render status: 200, plain: success_message render status: 201, html: success_message
In smart actions it says : render json: { success: success_message }
Thanks for you help !
forest_liana (7.6.7)
The text was updated successfully, but these errors were encountered:
Expected behavior
When overriding a route, I can't edit the success notification:
Actual behavior
Here is my code:
I always get "Organization deleted!" as notification
I've tried several way to render a success messages but non of them worked
render status: 200, plain: success_message
render status: 201, html: success_message
In smart actions it says :
render json: { success: success_message }
Thanks for you help !
forest_liana (7.6.7)
The text was updated successfully, but these errors were encountered: