Web Development 的學習之旅

2007/06/28

Ruby & Rails 常用的命令列

[更新中]


xx@xx.xx [~/path]# ruby -cw [filename.rb] <-- -c=check, -w=warning
xx@xx.xx [~/path]# ruby -v <-- version
xx@xx.xx [~/path]# ruby -e 'puts "Code demo!"' <-- -e=execute code
xx@xx.xx [~/path]# irb
xx@xx.xx [~/path]# ruby -r profile [filename.rb]
xx@xx.xx [~/path]# ri
xx@xx.xx [~/path]# erb
xx@xx.xx [~/path]# rails /path/to/your/app
xx@xx.xx [~/path]# ruby script/generate model [model_name]
xx@xx.xx [~/path]# ruby script/generate controller [controller_name] [method_name]
xx@xx.xx [~/path]# ruby script/server
xx@xx.xx [~/path]# ruby script/console

沒有留言: