Last active
August 29, 2015 14:05
-
-
Save exegeteio/9fddd670b8197b0b34a9 to your computer and use it in GitHub Desktop.
i18n routes.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root to: redirect("/#{I18n.default_locale}", status: 302), as: :redirected_root | |
scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do | |
resources :users | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment