RoR - ArgumentError in SessionsController#create wrong number of arguments (1 for 2)
问题 I am new to RoR and I am following this tutorial on making a user authentication system from scratch: http://railscasts.com/episodes/250-authentication-from-scratch. I've been hung up on this error message all weekend: ArgumentError in SessionsController#create: wrong number of arguments (1 for 2). Here is the code from my sessions controller: class SessionsController < ApplicationController def new end def create user = User.authenticate(:email => params[:email], :password => params[