« Return to Thread: inconsistent routing

Re: inconsistent routing

by Benny Degezelle :: Rate this Message:

Reply to Author | View in Thread

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/.
_______________________________________________
Radiant mailing list
Post:   Radiant@...
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

 « Return to Thread: inconsistent routing