search for: createpropertys

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

Did you mean: createproperties
2008 Jun 10
1
NameError in AdminController, uninitialized constant
...ot; 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 drop_table :propertys end...
2006 Aug 13
4
has_many and foreign_key question
Alright, noob here, etc. etc. Trying to figure out the has_many usage. If I understand correctly, when you declare that a table/class has_many whatevers, the rails assumption is that there will be a foreign key in the whatevers table pointing back to the ''id'' primary key in the first table. This doesn''t seem to be the only way to have a ''has_many''