[Rails] Logging out feature

2010-03-21 Thread Jagmit Gabba
Logging out feature, Code: def logout @title = Login - Books session[:user_id] != nil flash[:notice] = You have sucessfully been logged out ! redirect_to :controller = :books, :action = :index end end ^^when this is run, it logs the user out (nill) and displays you have

Re: [Rails] Logging out feature

2010-03-21 Thread Jeffrey L. Taylor
Quoting Jagmit Gabba li...@ruby-forum.com: Logging out feature, Code: def logout @title = Login - Books session[:user_id] != nil flash[:notice] = You have sucessfully been logged out ! redirect_to :controller = :books, :action = :index end end ^^when this is

Re: [Rails] Logging out feature

2010-03-21 Thread Colin Law
On 21 March 2010 15:59, Jagmit Gabba li...@ruby-forum.com wrote: Logging out feature, Code: def logout   �...@title = Login - Books    session[:user_id] != nil Do you mean session[:user_id] = nil Colin    flash[:notice] = You have sucessfully been logged out !    redirect_to