aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_collections_helper.rb
blob: 27b214f34c3c4f28b7cddb8f3dff34dfe19db1dd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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