Adding (not rewriting a class) for the form generated by form_for helper

How do you add an extra class to the form formed by the rails? This is in contrast to overwriting an existing class, as described here:

How do you redefine the class name in form_for helper?

Usage: class => "foo" does not work.

+4
source share
1 answer

Following the advice on the comments, I did this by manually adding the source class

0
source

Source: https://habr.com/ru/post/1397899/


All Articles