Updating the code formatting for better viewing.
Folks,
I have been looking at this for sometime but I don\'t understand what could be messing up here. I am usin
Nowadays (April 2013) you should start to use https://github.com/rails/strong_parameters
Inside of SpecificModel
(appfolder/app/model/specific_model.rb)
Try using
attr_accessible :addresses_attributes, :another_attribute_to_make_mass_assignable, :another_attribute, etc.
Just include the datafield in the model as mentioned below
attr_accessible :addresses_attributes
Have a look here and learn :)
http://railscasts.com/episodes/26-hackers-love-mass-assignment
Edit:
Having accepts_nested_attributes_for
in User model enables you to send the data to the Address model.
Then, in the Address model, you have to set the requested attr_accessible