Tutorials Point


  Learning Ruby on Rails
  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 - The Generators


previous
GeneratorDescription
script/generate model ModellNameGenerates Active Records
script/generate controller ListController show editGenerates Controller
script/generate scaffold ModelName ControllerNameGenerates Scaffold
script/generate migration AddNewTableGenerates Table to migrate
script/generate plugin PluginNameGenerates Plugin
script/generate integration_test TestNameGenerates Integ Test
script/generate session_migrationGenerates Session Migration

Following is the list of options which can be used alongwith generators:

    -p, --pretend Run but do not make any changes.

  • -f, --force Overwrite files that already exist.

  • -s, --skip Skip files that already exist.

  • -q, --quite Suppress normal output.

  • -t, --backtrace Debugging: show backtrace on errors.

  • -h, --help Show this help message.

  • -c, --svn Modify files with subversion.

Check following link for more information on Rails Generators.


previous Printer Friendly

Advertisements


  

Advertisements