Instantiate a custom Rails FormBuilder without using form_with | justin․searls․co
14-Jul-2024 451
I'm building a Rails app using Tailwind, which works really well for almost everything out-of-the-box except forms, because—unless you relish the idea of repeating the exact same list of CSS classes for each and every field in your app—you're going to be left wanting for some way to extract all that messy duplication.To that end, I've gradually built up a custom FormBuilder to house all my classes. (If you're looking for a starting point, here's a gist of what my TailwindFormBuilder currently looks like).
Instantiate a custom Rails FormBuilder without using form_with | justin․searls․co #ruby #rubydeveloper #rubyonrails #Instantiate #custom #Rails #FormBuilder #without #using #form_with #justin․searls․co https://rubyonrails.ba/link/instantiate-a-custom-rails-formbuilder-without-using-form_with-justin-searls-co