That’s give me an error
:: <%= form “user” %>
:: <%= input “user”, “username” %>
:: <%= end_form_tag %>
NoMethodError in Home#index
Showing app/views/components/_loginbox.rhtml where line #1 raised:
You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.new_record?
Note that the directory /components/ doesn’t match a controller (but it
isn’t important).
Why?