diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-17 09:39:01 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-17 09:39:01 +0000 |
commit | ba96827b3d05396b11491e36590c52a407ddb8a2 (patch) | |
tree | 0cbb0da56782cf3d8e35cab31b94a8bc922d9ba5 /actionpack/lib/action_view | |
parent | e5b3d08a0a10169cc7d482d13d5b5429162206c4 (diff) | |
download | rails-ba96827b3d05396b11491e36590c52a407ddb8a2.tar.gz rails-ba96827b3d05396b11491e36590c52a407ddb8a2.tar.bz2 rails-ba96827b3d05396b11491e36590c52a407ddb8a2.zip |
Fixed FormTagHelper#check_box to respect checked #1049 [DelynnB]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 007437b7ad..4e25eee071 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -199,7 +199,7 @@ module ActionView else value.to_i != 0 end - if checked + if checked || options["checked"] == "checked" options["checked"] = "checked" else options.delete("checked") |