Hey there, I’d like to set up my application so that, upon
successfully creating a new user (within the users controller), that
user is automatically logged in. So this is what I figured might
work, but it doesn’t:
@user = User.new(params[:user])
redirect_to(:controller => ‘sessions’, :action => ‘create’, :login
=> @user.login, :password => @user.password)
I get an error to the tone of “non-existent action.”
Any ideas? Should I post my sessions_controller code?
Thanks in advance, I hope I’ve provided enough info.