I find hard to work with rest and custom actions.
I have an action

def logout
  session[:user = nil
end

for controller user.
In my view I call <%= link_to "Logout', :action => 'logout'.
When I click on link the error is:

Couldn't find Ruser with ID=logout

My routes.rb has  resources :rusers.
How I must call logout action?

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