neorails-form_fu 0.1.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/form_fu.gemspec +1 -1
- data/lib/form_fu/form_builder.rb +2 -4
- metadata +1 -1
data/form_fu.gemspec
CHANGED
data/lib/form_fu/form_builder.rb
CHANGED
@@ -36,10 +36,10 @@ module FormFu
|
|
36
36
|
# build radio choices html
|
37
37
|
choices_html = ""
|
38
38
|
choices.each do |key, value|
|
39
|
-
radio_html = radio_button(field, value)+key
|
39
|
+
radio_html = @template.radio_button(field, value)+key
|
40
40
|
|
41
41
|
# wrap radio html in a label (for easier selection)
|
42
|
-
choices_html << content_tag(:label, radio_html, :class => "radio-option")
|
42
|
+
choices_html << @template.content_tag(:label, radio_html, :class => "radio-option")
|
43
43
|
end
|
44
44
|
|
45
45
|
# wrap the radio-group with a label
|
@@ -90,8 +90,6 @@ module FormFu
|
|
90
90
|
block_given? ? @template.capture(&block) : nil
|
91
91
|
].compact.join("\n"))
|
92
92
|
|
93
|
-
Rails.logger.debug "OUTPUTING LABEL FORMAT:\n\n#{output_html}\n\n"
|
94
|
-
|
95
93
|
if block_given?
|
96
94
|
# concat to page if block was given
|
97
95
|
return concat(output_html, block.binding)
|