On Mar 1, 9:22 am, Mark Sobkowicz <[email protected]> wrote: > I have two models Customer and Rental. Customer has_many :rentals, Rental > belongs_to :customer.
Assuming you're using DRYML and haven't overridden the views, this is controlled in the model. You just need to add: has_many :rentals, :accessible => true, :dependent => :destroy children :rentals validates_associated :rentals to your customers.rb model, and Hobo will automagically build the right forms for simultaneous record creation for you. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
