Posted By

zuwiki on 02/03/07


Tagged

rails ruby on


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

ryanprel
Firanide
tkmr
inkdeep
webstic


Simple Authentication Checker


 / Published in: Ruby
 

  1. def check_authentication
  2. unless session[:admin]
  3. session[:intended_action] = action_name
  4. session[:intended_controller] = controller_name
  5. redirect_to :action => "signin"
  6. end
  7. end

Report this snippet  

You need to login to post a comment.