Tutorials Point

  Learning Ruby on Rails 2.1
  Advanced Ruby on Rails 2.1
  Ruby on Rails Quick Guide
  Ruby Tutorial
  Ruby on Rails Resources
  Selected Reading

Copyright © 2014 by tutorialspoint

  Home     References     Discussion Forums     About TP  

Ruby on Rails 2.1 - The Useful Scripts

previous next AddThis Social Bookmark Button


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

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 Printer Friendly