public
Created

  • Download Gist
sessions_controller.rb
Ruby
1 2 3 4
def logout
session[:user_id] = nil
redirect_to :action => 'login'
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.