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: , ,

2 Responses to “Rails 里很BT的一个函数”

  1. blackanger Says:

    哈哈

  2. blackanger Says:

    不清楚rails2.0.1有没有修正这个方法

Leave a Reply