Skip to content

Instantly share code, notes, and snippets.

@aishek
Created February 4, 2015 12:04
Show Gist options
  • Save aishek/7697a92c5f9a56c8d3d4 to your computer and use it in GitHub Desktop.
Save aishek/7697a92c5f9a56c8d3d4 to your computer and use it in GitHub Desktop.
trailing_slash example
# config/application.rb
# ...
module Example
class Application < Rails::Application
# ...
config.action_controller.default_url_options = { :trailing_slash => true }
config.action_mailer.default_url_options = { :trailing_slash => true }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment