Commit 8aebd43275649e103ee7b600792c2eeae2379e18
1 parent
a4d55f5c
Exists in
master
and in
28 other branches
Fix FormsHelper
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/helpers/forms_helper.rb
... | ... | @@ -14,9 +14,9 @@ module FormsHelper |
14 | 14 | |
15 | 15 | def labelled_check_box( human_name, name, value = "1", checked = false, options = {} ) |
16 | 16 | options[:id] ||= 'checkbox-' + FormsHelper.next_id_number |
17 | - check_box_tag( name, value, checked, options ) + | |
18 | - content_tag( 'label', human_name, :for => options[:id] ) + | |
19 | - hidden_field_tag(name, '0') | |
17 | + hidden_field_tag(name, '0') + | |
18 | + check_box_tag( name, value, checked, options ) + | |
19 | + content_tag( 'label', human_name, :for => options[:id] ) | |
20 | 20 | end |
21 | 21 | |
22 | 22 | def labelled_text_field( human_name, name, value=nil, options={} ) | ... | ... |