aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_collections_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_collections_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_collections_helper.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/form_collections_helper.rb b/actionpack/lib/action_view/helpers/form_collections_helper.rb
new file mode 100644
index 0000000000..27b214f34c
--- /dev/null
+++ b/actionpack/lib/action_view/helpers/form_collections_helper.rb
@@ -0,0 +1,13 @@
+module ActionView
+ module Helpers
+ module FormCollectionsHelper
+ def collection_radio_buttons(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block)
+ Tags::CollectionRadioButtons.new(object, method, self, collection, value_method, text_method, options, html_options).render(&block)
+ end
+
+ def collection_check_boxes(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block)
+ Tags::CollectionCheckBoxes.new(object, method, self, collection, value_method, text_method, options, html_options).render(&block)
+ end
+ end
+ end
+end