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.

The solution is to add :childmodelname_attributes to the parent 
attr_accessible
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to