Displaying 1 result from an estimated 1 matches for "001_create_propertys".
2008 Jun 10
1
NameError in AdminController, uninitialized constant
...ent 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 CreatePropertys < ActiveRecord::Migration
def self.up
create_table :propertys do |t|
t.column :title, :string
t.column :description, :text
t.column :location, :string
t.column :image_url, :string
end
end
def self.down
dr...