NoMethodError in UserController#login

    if session[:user] = User.authenticate(params[:user][:login], params[:user][:password])

What is this line of code supposed to do? The syntax seems to me completely wrong, hence Rails blowing on you.