2008年5月6日 星期二

generate command, rails command, rake command, console

rails:
rails -d mysql  test
create files for rails project, using mysql  
( default is sqlite)

generate:
script/generate  controller rabbit index 
create rabbit controller with index action,  rabbit test, rabbit helper  & index template in the rabbit view

rake:
rake db:migrate
create the table in the database based on the migration file

script/console:
-s:  Any modifications you make will be rolled back on exit

沒有留言: