search for: 001_create_products

Displaying 8 results from an estimated 8 matches for "001_create_products".

2008 Dec 20
3
rake aborted (wrong number of arguments)
I''m following a tutorial here to get some columns in my database. I generated a model called ''product'' then I edited ''db/001_create_products.rb'' to have a few columns but when I try to migrate I get this error: bio4054059:depot rmorourk$ rake db:migrate (in /Users/rmorourk/Sites/depot) == CreateProducts: migrating ================================================== -- create_table(:products) rake aborted! wrong number of argume...
2007 Aug 12
10
about chinese display
...ml" file 4 making all the ".rtml"and".rb" files saved in "utf8" way 5 deleting my database and rebuilding the database When i made my "three" migration using "rake db:migrate",an error displayed in my console window saying "001_create_products.rb:14:syntax error, unexpected kEND,expecting $end". How do i manage this problem? More important,i want to know how can i make my app to display chinese correctly. thank you! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You rece...
2006 Aug 01
10
Migration DB Question
Just going through ''agile web development with rails'' 2nd ed. I accidentally created an empty migration source file with the wrong name, ruby script/generate migration add_test_date and then straight after that created the one I wanted to use ruby script/generate migration add_test_data and populated the second one - when I ran rake db:migrate a few times it did not seem
2006 Jun 06
0
Re: [ocruby] iteration A1 in ebook: scaffold gets: routing error
...u root drop ${name}_production mysqladmin -u root create ${name}_production echo rails rails.cmd $name cd $name echo rake db:migrate rake.bat db:migrate echo script/generate model Product ruby script/generate model Product echo "edit migration file" #read x cat > $base/$name/db/migrate/001_create_products.rb << !!eof class CreateProducts < ActiveRecord::Migration def self.up create_table :products do |t| t.column :title, :string t.column :description, :text t.column :image_url, :string end end def self.down drop_table :products end end !!eof e...
2008 Jun 10
1
NameError in AdminController, uninitialized constant
...here 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 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,...
2007 Oct 02
11
rake db:migrate fail! bad descriptor
Dear All, I am just getting into Ruby on Rails, after successfully failing at getting any other programming language to work locally. RoR appears to be a repeat! One problem I keep running into is getting a database up and running. I''m working out of Windows XP. I installed MySQL, it works, runs, will create tables etc. BUT, when I do rake db:migrate...it fails and tells me I have a
2006 Jun 06
15
error working through Agile !!!
Hi everyone, I''m working my way thru the ''Depot'' project from Agile Web Development with Rails. I got to the bit where I type: ruby script/generate scaffold Product admin And I get the following error: error Before updating scaffolding from new DB schema, try creating a table for your model (Product) ( on the last line ! ) Now I have followed everything as
2006 Apr 03
18
newbie generate scaffold
Hi Guys First time on the list and pretty new to the rails way of doing things, yup I know sorry.. another newbie! anyway, apologies out of the way, this is the problem I am having... I have purchased the "Agile Development with Rails" book and have just started running through the ''Depot'' demo application. I have got to page 57... I have my project files all