Richard Shank wrote: > [email protected] wrote: >> Richard, >> I had a go at it the other day and strangely enough it was all working >> fine, I threw my demo up on github so maybe you can check it out to >> help fix your problem: >> >> http://github.com/anathematic/has_one_problem/tree/master >> >> Thomas >> >> >> >> On Jun 10, 4:05�pm, Richard Shank <[email protected]> > > Actually, my problem had to do with having attr_accessable in the parent > model. My clue was getting a message in the console "WARNING: Can't > mass-assign these protected attributes:" > > Thanks for the post, I did use your code to start rebuilding to find out > where my problem was.
You need to add yuor nested model attributes to your attr_accessible incase you havent already attr_accessible :user_detail_attributes Ill be looking at this failry shortly so let me know if yuo fix it first! JB -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

