Skip wrapper on associations with simple_form

sailor picture sailor · Feb 21, 2013 · Viewed 9.1k times · Source

I'm using simple_form, and I wonder if it's possible to skip any wrapper divs when dealing with an association select.

Thank's

Answer

EasyCo picture EasyCo · Apr 23, 2014

If you're using something like f.association :product you can remove both the generated label and wrapper like so: f.association :product, label: false, wrapper: false