diff options
author | Marcel Molina <marcel@vernix.org> | 2006-01-06 17:49:14 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-01-06 17:49:14 +0000 |
commit | b30ccefe6f143e2c907f9cfc71b251cdd88ba7af (patch) | |
tree | d7a443d554bade64a7e7fcd2e28fbb247be4c637 | |
parent | 945dd920ab0954acdbc9b3317145b267a9638a50 (diff) | |
download | rails-b30ccefe6f143e2c907f9cfc71b251cdd88ba7af.tar.gz rails-b30ccefe6f143e2c907f9cfc71b251cdd88ba7af.tar.bz2 rails-b30ccefe6f143e2c907f9cfc71b251cdd88ba7af.zip |
Have the form builder output radio button, not check box, when calling the radio button helper. Closes #3331.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index aacf62f224..2a2a088f27 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Have the form builder output radio button, not check box, when calling the radio button helper. #3331 [LouisStAmour@gmail.com] + * Added assignment of the Autocompleter object created by JavaScriptMacroHelper#auto_complete_field to a local javascript variables [DHH] * Added :on option for PrototypeHelper#observe_field that allows you to specify a different callback hook to have the observer trigger on [DHH] diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index aea5dc47f3..ce93e1ced3 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -370,7 +370,7 @@ module ActionView end def radio_button(method, tag_value, options = {}) - @template.check_box(@object_name, method, tag_value, options.merge(:object => @object)) + @template.radio_button(@object_name, method, tag_value, options.merge(:object => @object)) end end end |