Displaying 5 results from an estimated 5 matches for "user_login_succeeded".
2008 Apr 30
4
what is .....undefined method `authenticate'
...logged_in = false
end
@user = User.new(params[''user''])
if session[''user''] = User.authenticate(params[''user''][''username''],
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>
&...
2006 Apr 29
10
A Good Tutorial on Params and Variables
I have found various posts about instance variables, session variables
and parameters (each of which seems to use differnet syntax and have
different view on the "best practice") I would like to find a single,
reliable source that provides a good overview on all of it.
Specifically, I would like to learn how to pass parameters between
controllers and how to set session variables so
2006 Apr 25
0
completely stuck on Role-Based Authorization
...te_blank
@user = User.new(@params[''user''])
if @session[''user''] = User.authenticate(@params[''user''][''login''],
@params[''user''][''password''])
flash[''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)...
2005 Dec 31
0
Salted Login Generated code throwing lots of errors
..._blank
@user = User.new(@params[''user''])
if @session[''user''] = User.authenticate(@params[''user''][''login''],
@params[''user''][''password''])
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['...
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.