You should look into using fields_for and nested_attributes api.rubyonrails.org/classes/ActiveRecord....
You should look into using fields_for and nested_attributes. api.rubyonrails.org/classes/ActiveRecord... Do you have attr_accessible set in the user. Rb model?
If not I would add it because that is a security issue.
Please see below. Thanks for the response! – Trent Apr 2 '11 at 22:04.
Ok I added the accepts_nested_attributes_for :phone in the user model. I also added the fields for phone in the new user form like so %p - fields_for @user. Phone do |phone| = phone.
Label :phone, "Phone" = phone. Text_field :area_code, :style => "width: 50px;" = phone. Text_field :phone, :style => "width: 100px;" = phone.
Label :ext, "Ext. " = phone. Text_field :extension, :style => "width: 60px;" but now I am getting the ActionView::Template::Error (undefined method `model_name' for NilClass:Class) exception.
And yes I have attr_accessible in my model. I just placed a very watered down version in here.
Well I fixed the NilClass exception. I needed to add f. Fields_for :phone do |phone|.
But still no luck. Now the fields aren't even showing up anymore. – Trent Apr 2 '11 at 22:18.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.