Ruby on Rails, не могу сказать, правильно ли я установил - PullRequest
0 голосов
/ 25 марта 2011

Я только что установил Ruby on Rails и готов начать работать с учебными пособиями, но когда я наберу

heather @ heather-laptop: ~ / RubyProjects $ rails demo

Я получаю

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.

Я делаю это правильно? Нужно ли добавлять флаг?

Ответы [ 2 ]

3 голосов
/ 25 марта 2011

Вам нужно использовать new ... именно то, что говорит вывод ...

rails new [Application Name]
0 голосов
/ 25 марта 2011
Usage:
  rails new APP_PATH [options]

Как сказано выше, вы пропустили new.

Чтобы начать работу с Ruby on Rails, ознакомьтесь с этими руководствами Начало работы с Rails 3

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...