search for: address_line2

Displaying 2 results from an estimated 2 matches for "address_line2".

Did you mean: address_line_2
2006 Apr 23
2
Rails Recipes
...re do I run this code to create the table? Thanks! class AddContactsTable < ActiveRecord::Migration def self.up create_table :contacts do |t| t.column :name, :string t.column :email, :string t.column :phone, :string t.column :address_line1, :string t.column :address_line2, :string t.column :city, :string t.column :state, :string t.column :country, :string t.column :postal_code, :string end end def self.down drop_table :contacts end end -- Posted via http://www.ruby-forum.com/.
2011 Mar 10
4
Multi-model forms
...forms, specifically 3. I''m using this http://guides.rubyonrails.org/getting_started.html as a start, and its got a 2 Model example but I cant seem to get the last one working. These are my models: Country name:string code:string (has_one :address) Address address_line1:string address_line2:string city:string state:string country:references (belongs_to :country, has_one :guest) Guest name:string last_name:string gender:boolean vip:boolean address:references (belongs_to :address) So basically what I want to do is insert a new guest through guests/ new and insert a row for each...