Discussion Forums
- Topic List
- Most Recent Posts
- Sign In for more options
I have the following error:
NoMethodError in Account#signup
Showing account/signup.rhtml where line #19 raised:
You have a nil object when you didn't expect it! The error occurred while evaluating nil.generated_methods Extracted source (around line #19):
17: 18:
Username
19: 'fillInEmail();'%>
Email
22:
My signup.rhtml looks like this:
Username
Email
Password
Confirm Password
Class
Primary Concentration
Other Info
I found the problem.
I had a field in my users table called class, which I used for "Graduating class of" but "class" is a rails reserved name, so it did things it wasn't supposed to.
I changed the name to class_of and it works perfectly!
