hello, i have a rails 3 engine scoped dynamically like this: scope "/:locale" do mount MyEngine::Engine => '''', :as => ''my_engine'' end I can''t seem to be able to set my own locale like this: my_engine.page_path(page, :locale => ''de'') the path is generated like this: /en/page/12345?locale=de instead of simply: /de/page/12345 Any suggestions how to do this correcly? Thank you! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/MnYwVnpXam1Vc3dK. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi I have at the moment the same problem as you. Have you found a solution for it? Thanks in advance for your help! Roman Am Samstag, 4. Juni 2011 10:31:14 UTC+2 schrieb Tomas Celizna:> > hello, > i have a rails 3 engine scoped dynamically like this: > > scope "/:locale" do > mount MyEngine::Engine => '''', :as => ''my_engine'' > end > > I can''t seem to be able to set my own locale like this: > > my_engine.page_path(page, :locale => ''de'') > > the path is generated like this: > > /en/page/12345?locale=de > > instead of simply: > > /de/page/12345 > > Any suggestions how to do this correcly? > > Thank you! >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e2c9c174-8db3-4650-a4ab-0e6974e7072c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Apparently Analagous Threads
- Rails 3.1 Engines: Full vs. Mountable
- Rails Engine ActionController::UrlGenerationError on functional tests
- Engines issue: rake test_plugins failing when it shouldn''t
- Rails 3.1(beta1) + SASS + variables
- Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?