The idea is to keep the filters or page where the user was before he goes to a create/update form.
Suggestion: Using the referer. Having a hidden field tag helper that will use existing form_redirect_to redirect_to_on_success param.
If params[:redirect_to_on_success] present, then use it value, otherwise use the request.referer
The idea is to keep the filters or page where the user was before he goes to a create/update form.
Suggestion: Using the referer. Having a hidden field tag helper that will use existing
form_redirect_toredirect_to_on_successparam.If
params[:redirect_to_on_success]present, then use it value, otherwise use therequest.referer