Displaying 4 results from an estimated 4 matches for "user_login_fail".
Did you mean:
user_login_failed
2008 Apr 30
4
what is .....undefined method `authenticate'
...name''],
params[''user''][''password''])
flash[:notice] = l(:user_login_succeeded)
redirect_to :action => ''list''
else
@login = params[''user''][''login'']
flash.now[:notice] = l(:user_login_failed)
end
end
-----------------------------------------------------------------------
FORM IS
<div>
<h1>Login Section</h1>
<% form_tag :controller => "user", :action => "login_submit" do %>
<p class="input_fields"><label>Us...
2006 Apr 25
0
completely stuck on Role-Based Authorization
...sh[''notice''] = l(:user_login_succeeded)
redirect_back_or_default :controller => "admin", :action => ''list''
else
@login = @params[''user''][''login'']
flash.now[''message''] = l(:user_login_failed)
end
end
(admin_controller.rb)
before_filter :login_required,
:check_authorization,
:except => [:login, :signup, :show]
def check_authorization
user = User.find(session[:user])
unless user.roles.detect{|role|
role.rights.detect{|right|
right...
2005 Dec 31
0
Salted Login Generated code throwing lots of errors
...assword''])
flash[''notice''] = l(:user_login_succeeded)
redirect_back_or_default :action => ''welcome''
else
@login = @params[''user''][''login'']
flash.now[''message''] = l(:user_login_failed)
end
end
This craps out on the line:
if @session[''user''] = User.authenticate(@params[''user''][''login''],
@params[''user''][''password''])
and the line:
@login = @params[''user''...
2006 Jun 15
6
Newbie''s problem with a nil object he didn''t expect!
Dear Rubyists/Rails gurus,
Though I''ve successfully completed the various Rails tutorials online
and the Depot application from the Agile Web Development with Rails
book, I''m still pretty much a Ruby/Rails newbie. I''m trying to learn by
writing my own simple blogging application, but I''ve run into a problem
that has had me scratching my head for a few days now.