I have created a form, and have decided to split out certain fields into there own models.
I have created an
Address model which
belongs_to :job_sheet, I have 2 other models in there too.
My question is, is there a way of creating a new
Address without specifying it in my controller as my
new action is getting quite big, this is what I have in my
def new @company = find_company @job_sheet = @company.job_sheets.new(user: current_user) @job_sheet.products.new @job_sheet.vehicles.new @job_sheet.build_customer_address @users = User.all end
Another reason I would like to know if that is possible is, because not all of my forms have