diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-05-05 16:11:49 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-05-05 16:11:49 +0000 |
commit | 811f6a7aab10b0c75ab2882b30075335761d1275 (patch) | |
tree | f972c8ba4c7c6cf04b113a08f0b247ee5b3679ce | |
parent | a02f1b85f01c87848cfb02548a6e09654ee3e261 (diff) | |
download | rails-811f6a7aab10b0c75ab2882b30075335761d1275.tar.gz rails-811f6a7aab10b0c75ab2882b30075335761d1275.tar.bz2 rails-811f6a7aab10b0c75ab2882b30075335761d1275.zip |
fix boolean field rendering in scaffolding
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionwebservice/CHANGELOG | 2 | ||||
-rw-r--r-- | actionwebservice/lib/action_web_service/scaffolding.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/actionwebservice/CHANGELOG b/actionwebservice/CHANGELOG index 4b89426908..6906197b8b 100644 --- a/actionwebservice/CHANGELOG +++ b/actionwebservice/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fix that boolean fields were not rendered correctly in scaffolding + * Fix that scaffolding was not working for :delegated dispatching * Add support for structured types as input parameters to scaffolding, this should let one test the blogging APIs using scaffolding as well diff --git a/actionwebservice/lib/action_web_service/scaffolding.rb b/actionwebservice/lib/action_web_service/scaffolding.rb index 3befdc87fa..a2e8caa41a 100644 --- a/actionwebservice/lib/action_web_service/scaffolding.rb +++ b/actionwebservice/lib/action_web_service/scaffolding.rb @@ -190,8 +190,8 @@ module ActionWebService when :string text_field_tag field_name_base when :bool - radio_button_tag field_name_base, "True" - radio_button_tag field_name_base, "False" + radio_button_tag(field_name_base, "true") + " True" + + radio_button_tag(field_name_base, "false") + "False" when :float text_field_tag field_name_base when :time |