Return to Snippet

Revision: 2349
at February 3, 2007 09:59 by zuwiki


Initial Code
  def check_authentication
    unless session[:admin]
      session[:intended_action] = action_name
      session[:intended_controller] = controller_name
      redirect_to :action => "signin"
    end
  end

Initial URL

                                

Initial Description

                                

Initial Title
Simple Authentication Checker

Initial Tags
rails, ruby

Initial Language
Ruby