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:
def create
@user = User.new(params[:user])
…
if @user.save
…
redirect_to(:controller => ‘sessions’, :action => ‘create’, :login
=> @user.login, :password => @user.password)
else
…
end
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.
Best,
Jared