Couldn't find Ruser with ID=logout > > > My routes.rb has resources :rusers.
the above means your user model has a diferent name than the one you are usign On Fri, Sep 10, 2010 at 9:40 AM, Sandy <[email protected]> wrote: > > > On Sep 10, 7:52 am, radhames brito <[email protected]> wrote: > > you have a typo on your model name in controller. > > > > On Fri, Sep 10, 2010 at 4:59 AM, Mauro <[email protected]> wrote: > > > 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]<rubyonrails-talk%[email protected]> > <rubyonrails-talk%[email protected]<rubyonrails-talk%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > > There appear to be several typos: > > session[:user = nil > should be: > session[:user = nil] (missing ]) > > <%= link_to "Logout', :action => 'logout'. > should be: > <%= link_to 'Logout', :action => 'logout' %> (inconsistent " and ' > around Logout; and missing %> ) > > My routes.rb has resources :rusers. > Try putting the following line into routes.rb: > map.connect 'user/logout', :controller => 'user', :action => 'logout' > > -- > 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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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.

