rails 3 engine under dynamic scope

27 views
Skip to first unread message

Tomas Celizna

unread,
Jun 4, 2011, 4:31:14 AM6/4/11
to rubyonra...@googlegroups.com
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!

Roman Simecek

unread,
Jul 17, 2013, 5:10:16 AM7/17/13
to rubyonra...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages