Whenever i use Formtastic form helpers, it adds this as the class
attribute to the form:
<form class="formtastic #{class_name}"></form>
That ends up causing me issues, How to disable those default classes? I already use:
:html{ :class => 'foo' }
but that just gets appended.
Any classes you provide will get appended to the default ones provided by Formtastic. Your best option is to redefine the default classes in a separate CSS file which you'll include in the layout after the default Formtastic stylesheet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.