RailsCasts Pro episodes are now free!

Learn more or hide this

Losco's Profile

GitHub User: losco

Comments by Losco

Avatar

In sessions_controller.rb

ruby
  def create
    user = User.find_by_email(params[:email])
    if user && user.authenticate(params[:password])
      ....
    else
      ....
      render "new"
    end
  end

the missing part is render "new"