Instantiate a custom Rails FormBuilder without using form_with | justin․searls․co
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 https://rubyonrails.ba/single/instantiate-a-custom-rails-formbuilder-without-using-form_with-justin-searls-co