Rails 里很BT的一个函数
今天看ActionController::AbstractRequest的文档, 发现relative_url_root的解释竟然是这样的:
Returns the path minus the web server relative installation directory. This can be set with the environment variable RAILS_RELATIVE_URL_ROOT. It can be automatically extracted for Apache setups. If the server is not Apache, this method returns an empty string.
…..
If the server is not Apache, this method returns an empty string. 我靠!
Tags: apache, rails, relative_url_root
October 12th, 2007 at 10:48 pm
哈哈
December 18th, 2007 at 3:54 pm
不清楚rails2.0.1有没有修正这个方法