find_by_sql( ) can also be used to create model objects containing derived column data. If you use the as xxx SQL syntax to give derived columns a name in the result set, this name will be used as the name of the attribute. items = LineItem.find_by_sql("select *, " + " quantity*unit_price as total_ ...
2008-03-03

rails阶段总结Lighttpd FCG tomcat Rails Timer Service

关键字: lighttpd fastcgitomcat rails timer service
首先是robbin的帖子《在Linux平台上安装和配置Ruby on Rails详解》 http://www.javaeye.com/topic/43228?page=1 其次是如何在一台服务器上实现rails和j2ee共生《Lighttpd proxy to Tomcat》 http://rackerhacker.com/2007/04/05/lighttpd-proxy-to-tomcat/ 然后是如何在rails的环境下提供后台能够长时间运行的线程,即《[Rails] timer service》 http://lists.rubyonrails.org/pipermail/rails/ ...
hghdo
搜索本博客
最近加入圈子
存档
最新评论