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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -