Simple_form validation input and textarea class

Is it possible to change the default class "string" to both input and textarea to be my own default class, which I can choose?

And by that I mean simple_form.rb in my initializers.

+3
source share
2 answers

Yes, you can.
Refer to the user inputs section of the simplest forms of gem README.

+2
source

According to the latest build for the gem, you can change it in your initializer by typing config.input_class = 'your-class', but this will affect all classes of form input fields.

0
source

All Articles