On Nov 27, 2008, at 5:29 PM, giorgio wrote:

>
> That doesn't work.

I had it backwards.

Try this.

map.resources :accounts, :collection => {:logout => get}




> I can do:
>  map.logout 'logout', :controller => 'accounts', :action => 'logout'
> Not very elegant though
> But what is the point of having the default routes if you cant get to
> them?
>
> Is the idea to make a named route for everything?
>
> G
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to