Class: Judge::FormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- Judge::FormBuilder
- Includes:
- Html
- Defined in:
- lib/judge/form_builder.rb
Instance Method Summary collapse
- #check_box(method, options = {}, checked_value = "1", unchecked_value = "0") ⇒ Object
- #collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
- #grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = {}, html_options = {}) ⇒ Object
- #radio_button(method, tag_value, options = {}) ⇒ Object
- #select(method, choices, options = {}, html_options = {}) ⇒ Object
- #time_zone_select(method, priority_zones = nil, options = {}, html_options = {}) ⇒ Object
Methods included from Html
Instance Method Details
#check_box(method, options = {}, checked_value = "1", unchecked_value = "0") ⇒ Object
22 23 24 25 |
# File 'lib/judge/form_builder.rb', line 22 def check_box(method, = {}, checked_value = "1", unchecked_value = "0") add_validate_attr!(self.object, method, ) super end |
#collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
32 33 34 35 |
# File 'lib/judge/form_builder.rb', line 32 def collection_select(method, collection, value_method, text_method, = {}, = {}) add_validate_attr!(self.object, method, , ) super end |
#grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = {}, html_options = {}) ⇒ Object
37 38 39 40 |
# File 'lib/judge/form_builder.rb', line 37 def grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, = {}, = {}) add_validate_attr!(self.object, method, , ) super end |
#radio_button(method, tag_value, options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/judge/form_builder.rb', line 17 def (method, tag_value, = {}) add_validate_attr!(self.object, method, ) super end |
#select(method, choices, options = {}, html_options = {}) ⇒ Object
27 28 29 30 |
# File 'lib/judge/form_builder.rb', line 27 def select(method, choices, = {}, = {}) add_validate_attr!(self.object, method, , ) super end |
#time_zone_select(method, priority_zones = nil, options = {}, html_options = {}) ⇒ Object
52 53 54 55 |
# File 'lib/judge/form_builder.rb', line 52 def time_zone_select(method, priority_zones = nil, = {}, = {}) add_validate_attr!(self.object, method, , ) super end |