Displaying 2 results from an estimated 2 matches for "createproperties".
2008 Jun 10
1
NameError in AdminController, uninitialized constant
Hi there basically following the "Agile Web Development With Rails, 2nd
Edition"
i followed the tutorial exaclty, worked fine, so i decided to change one
thing
on page 74 instead of:
ruby script/generate model product
i used:
ruby script/generate model propertys
and:
depot_a/db/migrate/001_create_products.rb
~/Rails/ecom/db/migrate$ cat 001_create_propertys.rb
class
2006 Aug 13
4
has_many and foreign_key question
...the first table. This doesn''t seem to be the
only way to have a ''has_many'' relationship, and I can''t seem to get
override the rails assumptions for my tables. I have two tables,
''properties'' and ''jurisdiction_rates''.
class CreateProperties < ActiveRecord::Migration
def self.up
create_table :properties do |t|
t.column :address, :string
t.column :jurisdiction_id, :string
end
end
class CreateJurisdictionRates
def self.up
create_table :jurisdiction_rates do |t|
t.column :jurisdiction_id, :string...