Fix problem with passing params to redirect_to (prohibited as of Rails 4.1.6) in resources_controller.rb