ruby on rails 3 - Why is user.save true but email shows as nil? -
I am using a nested model form for sign-up and working through kinks as a start I am A problem that came up specially, although I do not actually find it returning as user.email back to zero . Before I started playing with the nested model form, I can make a record in the console for a problem. Now, though I can not create records and the latest records are made in their email as zero (I'm not sure there is nothing with the model in it, but this is my reference point When he starts messing up.) If I go to Rail Console to create a new user / profile, I follow this process: user = user. New user.mail = "" user.password = "" user.profile = profile.new user.profile.first_name = "" ... user.profile.save user.save Everything goes fine up to user.save, which gives me an error named : Undefined local variable or # & lt; User: & gt; For the method 'parameter' in the Rail Console, it pins user.rb: create_profile in 25 ...