Skip to content

Instantly share code, notes, and snippets.

View muiz's full-sized avatar

Muiz muiz

View GitHub Profile
@muiz
muiz / gist:969938
Created May 13, 2011 03:53
rake db:migate failed ( sqlite3, jruby on Rails 3.1.0.beta1 )
What's wrong with db:migrate?
commands:
jruby -S rails new iapple2 -m http://jruby.org/rails3.rb
cd iapple2
jruby -S rails generate scaffold Product name:string capacity:string color:string price:string logistics:string
rake db:migrate --trace
(in /home/sysadmin/Workspaces/Projects/iapple2)
@muiz
muiz / gist:969920
Created May 13, 2011 03:33
wrong number of arguments (Jruby on rails 3.1)
I create a new project use postgresql database. Then run the following commands:
jruby -S rails generate scaffold Product name:string capacity:string color:string price:string logistics:string
rake db:migrate
rails server
Then I goto page http://localhost:3000/products to add a new product, and then click "New product" button to save, but failed:
wrong number of arguments (6 for 5).