thank you @Andy thank you @Michael both method work in action new but comming back to problem as i was following http://media.railscasts.com/videos/073_complex_forms_part_1.mov
i need to create a virtual function in a model i tried various combination (for * ) but failed model: class ContentMaster < ActiveRecord::Base has_one :metadata def meta_attribute=(meta_attribute) *metadata = metadata.build(meta_attribute) end end i tried new and build_<assosiation> but they were not working ?? how to accomplish same in model -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.