Skip to content
This repository
Browse code

Merge pull request #43 from jisk/errors_inside_div

Move help-inline error sentences inside their control's div
  • Loading branch information...
commit 86601d92470c3ac6f0c77fbe38910628f2300d9b 2 parents d02ec34 + da6d1f3
Aaron Stone authored February 02, 2013
7  lib/formtastic-bootstrap/inputs/base/wrapping.rb
@@ -22,13 +22,16 @@ def bootstrap_wrapping(&block)
22 22
 
23 23
         def control_group_wrapping(&block)
24 24
           template.content_tag(:div, 
25  
-          [template.capture(&block), error_html].join("\n").html_safe, 
  25
+            template.capture(&block).html_safe, 
26 26
             wrapper_html_options
27 27
           )
28 28
         end
29 29
 
30 30
         def controls_wrapping(&block)
31  
-          template.content_tag(:div, template.capture(&block).html_safe, controls_wrapper_html_options)
  31
+          template.content_tag(:div,
  32
+            [template.capture(&block), error_html].join("\n").html_safe,
  33
+            controls_wrapper_html_options
  34
+          )
32 35
         end
33 36
         
34 37
         def controls_wrapper_html_options

0 notes on commit 86601d9

Please sign in to comment.
Something went wrong with that request. Please try again.