On 10 September 2010 15:40, 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-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.
>>
>>
> There appear to be several typos:
>
>  session[:user = nil
>  should be:
>  session[:user = nil] (missing ])

Or should be session[:user] = nil
Is that the same?

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