Posted By

winson on 04/30/07


Tagged

login textmate controller


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

webstic
octoberborn


Basic logout


 / Published in: Rails
 

  1. def logout
  2. session[:user] = nil
  3. redirect_to :action => "login"
  4. end

Report this snippet  

You need to login to post a comment.