Fixed :anchor use in url_for #821 [Nicholas Seckar]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 82aff27c
*SVN*
* Fixed :anchor use in url_for #821 [Nicholas Seckar]
* Removed the reliance on PATH_INFO as it was causing problems for caching and inhibited the new non-vhost support #822 [Nicholas Seckar]
* Added assigns shortcut for @response.template.assigns to controller test cases [bitsweat]. Example:
......
......@@ -8,7 +8,7 @@ module UrlHelper
# Returns the URL for the set of +options+ provided. This takes the same options
# as url_for. For a list, see the url_for documentation in link:classes/ActionController/Base.html#M000079.
def url_for(options = {}, *parameters_for_method_reference)
if Hash === options then options = { :only_path => true }.update(options.stringify_keys) end
options = { :only_path => true }.update(options.symbolize_keys) if options.kind_of? Hash
@controller.send(:url_for, options, *parameters_for_method_reference)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册