0

Rails Server を Ubuntu 10.10 ターミナルで実行しようとしています。しかし、チュートリアルで示したものとはまったく異なる出力が得られます。

Usage:
rails new APP_PATH [options]

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

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:
-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.

どんな助け/提案も大歓迎です。

ありがとう!

4

4 に答える 4

0

コンソールでrailsservertypeを実行する場合は「railsserver」、コンソールで新しいプロジェクトタイプを作成する場合は「railsnewproject_name」

于 2011-04-17T17:25:38.757 に答える
0

実行している Rails のバージョンは何ですか?

ターミナルで「rails -v」と入力します。バージョン 3 を持っていない場合、'rails new app_name' 構文は機能しません。これは Rails 3 で変更されたためです。

Rails を更新してから、「gem update rails」を再試行してください。

于 2011-04-17T18:21:17.273 に答える
0

これは、Rails 上の ubuntu について入手できる最高のドキュメントです。すべてを非常に簡単にセットアップするのに役立ちます:

https://help.ubuntu.com/community/RubyOnRails

于 2011-04-17T19:24:05.283 に答える
0

最初にディレクトリにプロジェクトを作成しましたか? していないようです。プロジェクトをセットアップするrails newと、サイトの Rails サーバーを実行できるようになります。

于 2011-04-17T17:23:52.177 に答える