Permalink
Browse files

fix boolean field rendering in scaffolding

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a02f1b8 commit 811f6a7aab10b0c75ab2882b30075335761d1275 @leonbreedt leonbreedt committed May 5, 2005
Showing with 4 additions and 2 deletions.
  1. +2 −0 actionwebservice/CHANGELOG
  2. +2 −2 actionwebservice/lib/action_web_service/scaffolding.rb
@@ -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
@@ -190,8 +190,8 @@ def method_parameter_input_fields(method, type, field_name_base)
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

0 comments on commit 811f6a7

Please sign in to comment.