Redirect back in Rails 5
redirect_to :back
has been rewritten to:
redirect_back(fallback_location: root_path)
This is much safer if HTTP_REFERER
does not exist
redirect_to :back
has been rewritten to:
redirect_back(fallback_location: root_path)
This is much safer if HTTP_REFERER
does not exist