[Radiant] inconsistent routing
Benny Degezelle
benny at gorilla-webdesign.be
Thu Feb 21 16:08:50 CST 2008
Nope, i'm still getting the same results; sometimes works, sometimes
doesn't.
the assert_recognizes didn't seem to work that way, i had to switch the
first part ('/en/shop') and the options to get those to pass
Sean Cribbs wrote:
> Benny,
>
> Try this:
>
> define_routes do |map|
> map.with_options :controller => 'shop', :action => 'index' do |shop|
> shop.connect "en/shop/:action/:id", :language => 'en-US'
> shop.connect "nl/shop/:action/:id", :language => 'nl-BE'
> end
> end
>
--
Posted via http://www.ruby-forum.com/.
More information about the Radiant
mailing list