Copyright © tutorialspoint.com

Ruby on Rails 2.1 - The Useful Scripts

previous next

Advertisements

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

ScriptDescription
script/aboutGives information about environenment
script/breakpointerStarts the breakpoint server
script/consoleinteractive Rails Console
script/destroyDeletes files created by generators
script/generateUsed by generators
script/runnerExecutes a task in the rails context
script/serverLaunches the development server
script/performance/profileProfile an expansive method
script/performance/benchmarkerbenchmark different methods

Script Example:

Here is an example to call a script. Following script will start development server.

C:\ruby> ruby script/server

previous next

Copyright © tutorialspoint.com