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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -