2011-03-24 277 views
0

,並準備好開始通過教程運行,但是當我輸入Ruby on Rails的,不能告訴我是否已經安裝了我剛剛安裝Ruby on Rails的正確

石楠@石楠筆記本電腦:〜/RubyProjects $軌演示

我得到

Usage: 
    rails new APP_PATH [options] 

Options: 
    -G, [--skip-git]   # Skip Git ignores and keeps 
     [--dev]     # Setup the application with Gemfile pointing to your Rails 
checkout 
    -b, [--builder=BUILDER]  # Path to an application builder (can be a filesystem path or URL) 
     [--edge]    # Setup the application with Gemfile pointing to Rails repository 
    -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) 
     [--skip-gemfile]  # Don't create a Gemfile 
    -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) 
           # Default: sqlite3 
    -O, [--skip-active-record] # Skip Active Record files 
    -r, [--ruby=PATH]   # Path to the Ruby binary of your choice 
           # Default: /usr/bin/ruby1.8 
    -J, [--skip-prototype]  # Skip Prototype files 
    -T, [--skip-test-unit]  # Skip Test::Unit files 

Runtime options: 
    -f, [--force] # Overwrite files that already exist 
    -s, [--skip]  # Skip files that already exist 
    -p, [--pretend] # Run but do not make any changes 
    -q, [--quiet] # Supress status output 

Rails options: 
    -v, [--version] # Show Rails version number and quit 
    -h, [--help]  # Show this help message 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. 

我是不是做正確嗎?我需要添加一個標誌嗎?

+0

你下面是使用Rails 2教程?你已經安裝了Rails 3。 – 2011-03-24 23:07:46

回答

3

您需要使用new ......輸出說什麼......

rails new [Application Name] 
0
Usage: 
    rails new APP_PATH [options] 

正如上面的輸出說,你錯過了new

要開始對Ruby on Rails的,經過這些指南Getting started with Rails 3