Displaying 5 results from an estimated 5 matches for "process_login".
Did you mean:
process_log_in
2007 May 23
3
User Login (process_login)
...ed a user registration within my application that requires
email validation and that seems to be working fine.
I''m now creating the user login page and have the following code in my
UsersController:
def login
@user = User.new
@user.username = params[:username]
end
def process_login
if user = User.authenticate(params[:user])
session[:id] = user.id # Remember the user''s id during this
session
redirect_to session[:return_to] || ''/''
else
flash[:error] = ''Invalid login.''
redirect_to :action => '...
2008 Sep 11
4
(unknown)
...about. Some body help.
wrong number of arguments (1 for 2)
RAILS_ROOT: C:/INSTAN~1/rails_apps/project/config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/controllers/user_controller.rb:10:in `authenticate''
#{RAILS_ROOT}/app/controllers/user_controller.rb:10:in `process_login''
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this gr...
2008 May 06
3
500 Internal Server Error - wrong number of arguments
I am getting the following error:
/!\ FAILSAFE /!\ Tue May 06 08:32:25 -0500 2008
Status: 500 Internal Server Error
wrong number of arguments (2 for 0)
I looked at the controller code and I am not using ruby send command
or anything that looks like code that redefine rails method. The error
message does not really help in pointing where the problem occurs. Any
ideas on how to debug this?
2007 Jul 20
3
Mozzila Logout back button issue
...recently created an application in Rails which makes use of a
login and logout system. I have a user controller and model as well as a
login controller. My login controller performs my logout and login
functions. The user is a scaffold of my database table and is auto
generated from rails.
def process_login
#Creates the user with the form variables i have not included the
code
#here to create the user cause its not necessary
if logged_in_user
session[:user_id] = logged_in_user.id
flash[:notice] = ''You have been logged in.''
redirect_to(:controller => &...
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...*info), vport->liobn, data_token,
++ vport->riobn, remote_buffer);
++
++ dma_free_coherent(target->dev, sizeof(*info), info, data_token);
++
++ if (err != H_SUCCESS) {
++ eprintk("Error sending adapter info %d\n", err);
++ return 1;
++ }
++
++ return 0;
++}
++
++static void process_login(struct iu_entry *iue)
++{
++ union viosrp_iu *iu = vio_iu(iue);
++ struct srp_login_rsp *rsp = &iu->srp.login_rsp;
++ uint64_t tag = iu->srp.rsp.tag;
++
++ /* TODO handle case that requested size is wrong and
++ * buffer format is wrong
++ */
++ memset(iu, 0, sizeof(struct srp_login_rsp...