Rails Nested Attributes Mass Assignment Error -
i have user model cannot create client due being unwritable in mass assignment.
how make can create client model?
code , error found here: http://pastie.org/1206482
i think have add:
attr_accessible :client_attributes
to user model. client_attributes hash in user hash posted create action.
the transmitted hash looks this: :user => { :username => "one", ..., :client_attributes => { :name => "client" } }
Comments
Post a Comment