Ruby-on-rails-2.1-rails-scripts

提供:Dev Guides
移動先:案内検索

Ruby on Rails 2.1-便利なスクリプト

Rubyは、プロジェクトの実装中に使用する多くの便利なスクリプトを提供します。 最も頻繁に使用するスクリプトは次のとおりです。

Script Description
script/about Gives information about environment.
script/breakpointer Starts the breakpoint server.
script/console Interactive Rails Console.
script/destroy Deletes files created by generators.
script/generate Used by generators.
script/runner Executes a task in the rails context.
script/server Launches the development server.
script/performance/profile Profiles an expansive method.
script/performance/benchmarker Benchmarks different methods.

スクリプトの例

スクリプトを呼び出す例を次に示します。 次のスクリプトは、開発サーバーを起動します。

C:\ruby> ruby script/server