gem 安装如下: *** LOCAL GEMS ***
actionmailer (3.1.3) actionpack (3.1.3) activemodel (3.1.3) activerecord (3.1.3) activeresource (3.1.3) activesupport (3.1.3) arel (2.2.1) builder (3.0.0) bundler (1.0.21 ruby) capistrano (2.9.0) cgi_multipart_eof_fix (2.5.0) daemons (1.1.4) erubis (2.7.0) fastthread (1.0.7) gem_plugin (0.2.3) highline (1.6.8) hike (1.2.1) i18n (0.6.0) json (1.6.2) mail (2.3.0) mime-types (1.17.2) multi_json (1.0.4) net-scp (1.0.4) net-sftp (2.0.5) net-ssh (2.2.1) net-ssh-gateway (1.1.0) polyglot (0.3.3) rack (1.3.5) rack-cache (1.1) rack-mount (0.8.3) rack-ssl (1.3.2) rack-test (0.6.1) rails (3.1.3) railties (3.1.3) rake (0.9.2.2, 0.9.2) rdoc (3.11) rubygems-update (1.8.11) sprockets (2.0.3) thor (0.14.6) tilt (1.3.3) treetop (1.4.10) tzinfo (0.3.31)
可是一启动就出现如下问题: Usage: rails new APP_PATH [options]
Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /home/beasthang/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -b, [--builder=BUILDER] # Path to a application builder (can be a filesystem path or URL) -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) [--skip-gemfile] # Don't create a Gemfile [--skip-bundle] # Don't run bundle install -G, [--skip-git] # Skip Git ignores and keeps -O, [--skip-active-record] # Skip Active Record files -S, [--skip-sprockets] # Skip Sprockets files -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc) # Default: sqlite3 -j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library # Default: jquery -J, [--skip-javascript] # Skip JavaScript files [--dev] # Setup the application with Gemfile pointing to your Rails checkout [--edge] # Setup the application with Gemfile pointing to Rails repository -T, [--skip-test-unit] # Skip Test::Unit files [--old-style-hash] # Force using old style hash (:foo => 'bar') on Ruby >= 1.9
Runtime options: -f, [--force] # Overwrite files that already exist -p, [--pretend] # Run but do not make any changes -q, [--quiet] # Supress status output -s, [--skip] # Skip files that already exist
Rails options: -h, [--help] # Show this help message and quit -v, [--version] # Show Rails version number and quit
Description: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify.
Example: rails new ~/Code/Ruby/weblog
This generates a skeletal Rails installation in ~/Code/Ruby/weblog. See the README in the newly created application to get going. beasthang@beasthang-Thinkpad:~/demo$ rails demo1 Usage: rails new APP_PATH [options]
Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /home/beasthang/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -b, [--builder=BUILDER] # Path to a application builder (can be a filesystem path or URL) -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) [--skip-gemfile] # Don't create a Gemfile [--skip-bundle] # Don't run bundle install -G, [--skip-git] # Skip Git ignores and keeps -O, [--skip-active-record] # Skip Active Record files -S, [--skip-sprockets] # Skip Sprockets files -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc) # Default: sqlite3 -j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library # Default: jquery -J, [--skip-javascript] # Skip JavaScript files [--dev] # Setup the application with Gemfile pointing to your Rails checkout [--edge] # Setup the application with Gemfile pointing to Rails repository -T, [--skip-test-unit] # Skip Test::Unit files [--old-style-hash] # Force using old style hash (:foo => 'bar') on Ruby >= 1.9
Runtime options: -f, [--force] # Overwrite files that already exist -p, [--pretend] # Run but do not make any changes -q, [--quiet] # Supress status output -s, [--skip] # Skip files that already exist
Rails options: -h, [--help] # Show this help message and quit -v, [--version] # Show Rails version number and quit
Description: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify.
Example: rails new ~/Code/Ruby/weblog
This generates a skeletal Rails installation in ~/Code/Ruby/weblog. See the README in the newly created application to get going. beasthang@beasthang-Thinkpad:~/demo$ gem install rdoc Depending on your version of ruby, you may need to install ruby rdoc/ri data:
菜鸟的楼主求助啊。