Scope available locales
suggest changeIf your application is available in different languages, you usually show the current locale in the URL.
scope '/(:locale)', locale: /#{I18n.available_locales.join('|')}/ do
root 'example#root'
# other routes
end
Your root will be accessible via the locales defined in I18n.available_locales.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents