Skip to content

Instantly share code, notes, and snippets.

@mateusg
Created December 14, 2012 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mateusg/4285510 to your computer and use it in GitHub Desktop.
Save mateusg/4285510 to your computer and use it in GitHub Desktop.
SimpleForm wrapper for http://attardi.org:81/labels2/ placeholder plugin.
config.wrappers :inline_form, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b|
b.use :html5
b.use :placeholder
b.wrapper :tag => 'label', :class => 'input' do |label|
label.use :label_text, :wrap_with => { :tag => 'span' }
label.use :input
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment