I'm having a problem getting the logout to work correct.
The sessions controller is how one logs in and out:
Here is the destroy action:
self.current_user.forget_me if logged_in?
flash[:notice] = "You have been logged out."
Just to preface, on my home page if user is logged in it displays the
user name. The cookies and sessions are working correctly. However
I've tried to get the logouts 2 ways:
One is by creating a link_to 'sessions/destroy' This seems to do
nothing , but return an error:
No action responded to show
The other way is that I just link to sessions which gives me an
nil.login error for this view:
<%= current_user.login %>
<%= current_user.created_at.strftime("%m/%d/%Y") %>
I'd expect it being REST , that I need the link to show something like
Any ideas would be appreciated.