1

This is in my routes file:

scope "(:locale)", locale: /en|es/ do
  get "about" => "static_pages#about"
end

I already know that I can use about_path to get the path to the "about" route, but I want to know if there is a method that will return the "about" route and the current locale in this format:

/en/about
TylerH
  • 20,799
  • 66
  • 75
  • 101
Eduardo Bautista
  • 1,340
  • 2
  • 10
  • 22

0 Answers0