Welcome to Working With Rails


Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
Acts_as_authenticated Account#signup problem
2 Posts
Acts_as_authenticated Account#signup problem

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!

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:

19: 'fillInEmail();'%>

20: 21:


My signup.rhtml looks like this:




Confirm Password


Primary Concentration

Other Info

and my users table looks as follows from the migration: create_table "users", :force => true do |t| t.column :login, :string t.column :email, :string t.column :crypted_password, :string, :limit => 40 t.column :salt, :string, :limit => 40 t.column :created_at, :datetime t.column :updated_at, :datetime t.column :remember_token, :string t.column :remember_token_expires_at, :datetime t.column :class, :integer, :limit => 4 t.column :primary_concentration, :string t.column :other, :text end I have tried a lot of things and can't seem to figure it out.
2 Posts
Login to add your message