Monday, July 19, 2010

[Rails] Re: map.login

Leonardo Mateo wrote:
> On Sun, Jul 18, 2010 at 6:33 PM, Abder-Rahman Ali <lists@ruby-forum.com>
> 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 ~

Thanks a lot.

But, if we say, map.connect (Regular route), this has a specific
meaning. Right? Is map.connect the http://www.xyz.com part for example?

Thanks.
--
Posted via http://www.ruby-forum.com/.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate