好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

rails consol reload!

rails consol reload!

每天一剂Rails良药之The Console Is Your Friend

ROR   2008-03-13 13:27:35   阅读 6   评论 0   字号: 大 中 小   订阅

我们要多使用 ruby script/console ,在开发Rails程序时最好启动一个console窗口 
我们来看看我们可以使用console干什么: 

Java代码 

Person.find_by_first_name( "Chad" ).email       Calendar.column_names       app.get  "/"    app.follow_redirect!  


如果Ruby编译时有readline支持,我们可以使用Tab键来补全类名和方法名 
如果我们修改了Model,我们不需重启console,运行 reload!() 即可

查看更多关于rails consol reload!的详细内容...

  阅读:51次

上一篇: ssh技巧

下一篇:管局介绍