RailsAdmin: A Custom Action Case Study
7 Patterns to Refactor Fat ActiveRecord Models
Rubymanor
Javascript 装载和执行过程详解
.when() to use Deferreds
定制jQuery File Upload为微博式单文件上传
writeexcel 方便的生成Excel报表
RubyGems页面
Github
详细文档
net/smtp 发送邮件
Sending Email using Ruby - SMTP
最近在看Sinatra 1.3.5的源码。在Sinatra::Helpers模块中看到一个名为uri
的方法,用来将一个相对路径转换为绝对路径。在该函数的代码中看到分别针对request.script_name和request.path_info进行了处理。但是并不清楚这两个参数的区别,于是做了一些reseach。
二者在RFC3875中有如下定义:
4.1.13. SCRIPT_NAME
The SCRIPT_NAME variable MUST be set to a URI path (not URL-encoded) which could identify the CGI script (rather than the script's output). The syntax is the same as for PATH_INFO (section 4.1.5) >