私はライアン・ベイツが Daemon のレールキャスト (エピソード 129) で使用するサンプル コードを使用しようとしています。Rails 3 をインストールしましたが、彼のコードをダウンロードすると、サーバーを実行できません。これを修正するために、標準の Rails 3 アプリケーションから gemfile と gemfile.lock をコピーし、彼のアプリケーションに入れ、bundle install を実行しました。それでも、Rails サーバーが応答しません。代わりに、次のようになります (以下を参照)。
私の推測では、Railscasts は Rails 2 を使用しているのに (私は信じています)、Rails 3 を使用しているため、問題が発生していると思います。彼のプログラムを引き続き使用できる方法はありますか?
ありがとう。
使用法:
rails new APP_PATH [options]
オプション:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /home/kyala/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db)enter code here
# 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
説明: このrails new
コマンドは、指定したパスにデフォルトのディレクトリ構造と構成を持つ新しい Rails アプリケーションを作成します。
例:
rails new ~/Code/Ruby/weblog
これにより、スケルトン Rails インストールが に生成され~/Code/Ruby/weblog
ます。
新しく作成されたアプリケーションの README を参照して、作業を開始してください。