1. <%= text_field 'registrar', 'registrar' %>
  2. <%= text_field 'address', 'address_line_1' %>
def new @registrar = Registrar.new @address = Address.new @countries = Country.find(:all) end def create @registrar = Registrar.new(params[:registrar]) @registrar.created_by = session[:user_id] @address = @registrar.addresses.build(params[:address]) if @registrar.save flash[:notice] = 'A Registrar was successfully created.' redirect_to :action => 'list' else render :action => 'new' end end