# File app/controllers/sessions_controller.rb, line 7 7: def create 8: if user = User.authenticate(params[:name], params[:password]) 9: session[:user_id] = user.id 10: redirect_to admin_url 11: else 12: redirect_to login_url, :alert => "Neplatné jméno anebo heslo" 13: end 14: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.