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
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
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
3 matches
Mail list logo