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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -