Skip to content

Instantly share code, notes, and snippets.

@dnshl
Created February 22, 2012 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnshl/1886575 to your computer and use it in GitHub Desktop.
Save dnshl/1886575 to your computer and use it in GitHub Desktop.
Tailing slashes in rails 3 applications
# Put this in your application.rb file under the config directory in your rails 3 app.
# Found here http://stackoverflow.com/a/9088501
config.action_controller.default_url_options = { :trailing_slash => true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment