homeschool 0.0.1.23 → 0.0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/form_buildr.rb +3 -3
- metadata +1 -1
data/lib/form_buildr.rb
CHANGED
@@ -40,15 +40,15 @@ class ActionView::Helpers::FormBuilder
|
|
40
40
|
|
41
41
|
def labeled_radio_button(method, tag_value, options={})
|
42
42
|
id = %{#{@object_name}_#{method}_#{tag_value}}
|
43
|
-
|
43
|
+
send(:radio_button, method, tag_value, {:id => id}.update(options.without(:label, :no_colon))) + send(:label_for, method, {:no_colon => true, :label => tag_value.humanize, :id => id}.update(options))
|
44
44
|
end
|
45
45
|
|
46
46
|
def labeled_check_box(method, options={}, checked_value="1", unchecked_value="0")
|
47
|
-
|
47
|
+
send(:check_box, method, options.without(:label, :no_colon), checked_value, unchecked_value) + send(:label_for, method, options.update(:no_colon => true))
|
48
48
|
end
|
49
49
|
|
50
50
|
def labeled_select(method, choices, options={}, html_options={})
|
51
|
-
|
51
|
+
label_for(method, options) + select(method, choices, options, html_options)
|
52
52
|
end
|
53
53
|
|
54
54
|
rdef(/labeled_(.*)/) do |match, *args|
|