ruby on rails - ActiveAdmin building parent objects in child form -
i'd able assign industry_id new business model when create it..or..create new industry instance added new business model when creating new business
here models
class business < activerecord::base attr_accessible :name, :industry, :owner belongs_to :industry end class industry < activerecord::base attr_accessible :name has_many businesses accepts_nested_attributes_for :businesses end
i have tried every way possible create form allow i've had no luck @ all.
the formtastic documentation doesn't appear have examples of , neither activeadmin's.
Comments
Post a Comment