Skip to content

Commit

Permalink
Correctly set data-field on form elements
Browse files Browse the repository at this point in the history
  • Loading branch information
willcannings committed Apr 15, 2012
1 parent 89e0936 commit b924ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yodel/models/pages/form_builder.rb
Expand Up @@ -186,7 +186,7 @@ def field(name, options={}, &block)
element.set_attribute('name', input_name)
element.set_attribute('class', class_name)
element.set_attribute('placeholder', field.placeholder || '')
element.set_attribute('data-field', input_name)
element.set_attribute('data-field', field_name)
options.each do |name, value|
element.set_attribute(name.to_s, value)
end
Expand Down

0 comments on commit b924ca8

Please sign in to comment.