Developer: Open Source ...
http://www.infoq.com/interviews/David-Hansson
今天尝试了一下部署一个rails 应用到lighttpd + fastcgi的环境, 把步骤记了一下, 希望对其他人也有用. Lighttpd 部分的配置有点粗糙,主要是图省事所以很多地方的路径都写死了. 我的操作系统是Redhat 4 首先 在sudoers中加入一个可以使用sudo命令的用户. su vi /etc/sudoers 找到这行 # User privilege specification root ALL=(ALL) ALL 然后加入你的用户名 # User privilege ...
Following article is copied from http://digitalmediaminute.com/howto/fc4rails/#installLighttpd 引用Introduction This how-to is aimed at getting you started with Ruby on Rails installed on the Fedora Core 4 Linux distribution using the Lighttpd web server and mySQL database server. Why use this combi ...
Method name/sample call Meaning a.size (synonym: length) Number of elements in the array a.empty? True if a is an empty array; false if it has any elements a.include?(item) True if the array includes items; false otherwise a.any? {|item| test } True i ...
2006-10-24

Date and Time format string

关键字: Ruby
Specifier Description %Y Year (four digits) %y Year (last two digits) %b, %B Short month, full month %m Month (number) %d Day of month (left-padded with zeros) %e Day of month (left-padded with blanks) %a, %A Short day name, full day name %H, ...
Gene
搜索本博客
最近加入圈子
存档
最新评论
评论排行榜