On 13 September 2010 21:57, Daniel Gaytán <[email protected]>wrote:
> Then it may be set as resource instead of resources
>
> or maybe
>
> resources :something, :except => :destroy do
> delete :destroy, :on => :collection, :as => :destroy
> end
If I do
resources :sessions, :except => :destroy do
delete :destroy, :on => :collection, :as => :destroy
end
Then It call update instead of destroy:
<%= link_to 'Logout', session_path, :method => :delete %>
No route matches {:action=>"update", :controller=>"sessions"}
--
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.