On Sun, Jul 18, 2010 at 6:33 PM, Abder-Rahman Ali <[email protected]> wrote: > In the Rails guides, under "Named Routes", it mentions the following: > > map.login '/login', :controller => 'sessions', :action => 'new' > > So, do I conclude that .login in map.login is "built-in" Rails, and > where used it denotes that a login form will be requested here? > This is just a named route, no more, no less. Nothing built-in, no magic, just a name for the route. That will give you a "/login" route wich points to SessionsController#new (the "new" action in the "sessions" controller)
-- Leonardo Mateo. There's no place like ~ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

