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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -