From 811f6a7aab10b0c75ab2882b30075335761d1275 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Thu, 5 May 2005 16:11:49 +0000 Subject: fix boolean field rendering in scaffolding git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionwebservice/CHANGELOG | 2 ++ actionwebservice/lib/action_web_service/scaffolding.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'actionwebservice') 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 -- cgit v1.2.3