Help: insert into multiple tables

Trying to figure out how to do an insert into multiple tables from one form.

Models:
class Canbackground < ActiveRecord::Base
belongs_to :candidate
has_many :canindustries
end

class Canindustry < ActiveRecord::Base

belongs_to :canbackground
end