diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-16 05:04:17 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-16 05:04:17 +0000 |
commit | cc6c48f0a8df33d706180bb22e1f39044b1dcbef (patch) | |
tree | 706a0b5f230cc20c3329323506848f70e582c7d1 /actionpack/lib | |
parent | 7bb486055e62b33547101a10d2505564ff1d004f (diff) | |
download | rails-cc6c48f0a8df33d706180bb22e1f39044b1dcbef.tar.gz rails-cc6c48f0a8df33d706180bb22e1f39044b1dcbef.tar.bz2 rails-cc6c48f0a8df33d706180bb22e1f39044b1dcbef.zip |
Fixed TagHelper such that :name and 'name' keys in the options doesn't result in two attributes #1455 [take_tk]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/tag_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb index 895a44eab5..1753ef9acf 100644 --- a/actionpack/lib/action_view/helpers/tag_helper.rb +++ b/actionpack/lib/action_view/helpers/tag_helper.rb @@ -25,8 +25,7 @@ module ActionView private def tag_options(options) unless options.empty? - options.symbolize_keys - " " + options.map { |key, value| + " " + options.symbolize_keys.map { |key, value| %(#{key}="#{html_escape(value.to_s)}") }.sort.join(" ") end |