rails 3 engine under dynamic scope

Tomas Celizna
2011-06-04T08:31:14Z

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