This is the test code of the sessions_controller.rb
user = User.authenticate(params[:session][:email],
flash.now[:error] = "Invalid email/password combination."
@title = "Sign in"
# Sign the user in and redirect to the user's show page.
If I check in my browser and clic on submit with all fields empty, I
get the following error:
NoMethodError in SessionsController
#create undefined method `nil' for nil:NilClass
I check the book many times and I have code exactly as the book, but I
still have the error. Any help???
You can check the code in this link listing 9.8
What I doing wrong?
Thanks for any help.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.