5、Generators ruby script/generate model ModelName ruby script/generate controller ListController show edit ruby script/generate scaffold ModelName ControllerName ruby script/generate migration AddNewTable ruby script/generate plugin PluginName ruby script/generate mailer Notification lost_password signup ruby script/generate web_service ServiceName api_one api_two ruby script/generate integration_test TestName ruby script/generate session_migration 可选项: -p, --pretend Run but do not make any changes. -f, --force Overwrite files that already exist. -s, --skip Skip files that already exist. -q, --quiet Suppress normal output. -t, --backtrace Debugging: show backtrace on errors. -h, --help Show this help message. -c, --svn Modify files with subversion. (Note: svn must be in path)
6、Plugins script/plugin discover # discover plugin repositories script/plugin list # list all available plugins script/plugin install where # install the a€wherea€? plugin script/plugin install -x where # install where plugin as SVN external script/plugin install http://invisible.ch/projects/plugins/where script/plugin update # update installed plugins script/plugin source # add a source repository script/plugin unsource # removes a source repository script/plugin sources # lists source repositories