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 <sandy.as...@gmail.com> wrote:

>
>
> On Sep 10, 7:52 am, radhames brito <rbri...@gmail.com> wrote:
> > you have a typo on your model name in controller.
> >
> > On Fri, Sep 10, 2010 at 4:59 AM, Mauro <mrsan...@gmail.com> 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 rubyonrails-talk@googlegroups.com
> .
> > > To unsubscribe from this group, send email to
> > > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> <rubyonrails-talk%2bunsubscr...@googlegroups.com<rubyonrails-talk%252bunsubscr...@googlegroups.com>
> >
> > > .
> > > 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 rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> 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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to