On 5 March 2010 13:18, mac <[email protected]> wrote: > "The create and build methods are only available for has_one/ > belongs_to if an association already exist. It will not work when it's > nil. "
http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html For a has_one, it seems you can user "build_<association>". So for your case: @metadata = @content_master.build_metadata ...might do the job. -- 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.

