[Rails] accepts_nested_attributes_for issue

2011-09-06 Thread Abhishek shukla
Hello, I am using accepts_nested_attributes_for for saving the records. let say I have a model class User < AR::Base has_many :books accepts_nested_attributes_for :books end class Book < AR::Base belongs_to :user end Now the params value I am getting is user={:id => 123, books_attribute

[Rails] accepts_nested_attributes_for - issue

2010-03-27 Thread slindsey3000
Just trying a simple example to try to get nested to work... but can't get it! Been 2 days! Please help. VERY SIMPLE controller, view, models... listed below. --ERROR MESSAGE-- ActiveRecord::AssociationTyp