Guest User

Untitled

a guest
Feb 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. class Sessions < Application
  2.  
  3. before :ensure_authenticated, :only => [:create]
  4.  
  5. def create
  6. redirect url(:home)
  7. end
  8.  
  9. def destroy
  10. session.abandon!
  11. redirect url(:login)
  12. end
  13.  
  14. end
Add Comment
Please, Sign In to add comment