Ruby on Rails 2.1 - The Useful Scripts


Ruby provides many useful scripts, which you use during your project implementation. Here are few scripts which you will use most frequently.

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.

Script Example

Here is an example to call a script. The following script will start the development server.

C:\ruby> ruby script/server