Multi-page Multi-Model Form in Rails
问题 I'm trying to create a multi-page form that uses multiple models. I have an applicant and this applicant has more than one address (one to many relationship). I would like the first page to contain information about the applicant, and then the page after that to have the form for the address(es) This is what I have at the moment: applicant.rb has_many :addresses, :dependent => :destroy accepts_nested_attributes_for :addresses address.rb belongs_to :applicant applicants_controller.rb: def new