Forum: Ruby on Rails Route problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
77707eb62b77a12638d1d0a9424afdc9?d=identicon&s=25 Nuno (Guest)
on 2006-05-11 11:30
Hello, with these routes.rb rules :

map.connect '', :language => 'fr', :controller => 'welcome'
map.connect ':language/:controller/:action/:id'


/fr/welcome or /en/welcome works fine but
/fr/somethingelse produce an error

Routing Error

Recognition failed for "/fr/static/bio"


Any idea or good tutorial about routes ?

Thanks
22ff4abebc9bfd299524bb14449d95dc?d=identicon&s=25 Erik van Oosten (Guest)
on 2006-05-11 11:46
(Received via mailing list)
Did you try switching the order?

     Erik.

Nuno schreef:
77707eb62b77a12638d1d0a9424afdc9?d=identicon&s=25 Nuno (Guest)
on 2006-05-11 11:59
Erik van Oosten wrote:
> Did you try switching the order?
>
>      Erik.
>
> Nuno schreef:

No but I tried this

map.connect ':language/:controller/:action/'

and it works ! Why ? Dunno...

I really need a good, a very good, routes.rb tutorial. Every day I learn
something more about RoR, every new view or controller is cleaner than
the previous one, I've learnt about tests, engines, migrations,
credentials but I'm still a bit lost when I comes to setup a route...
This topic is locked and can not be replied to.