Say No To Partials And Helpers For A Maintainable Rails Front-End
05-Sep-2024 390
I just read Garrett Dimon’s fantastic article “Structure Your ERb and Partials for more Maintainable Front-end Code in Rails”. It’s a wonderfully thorough discussion of how to use partials and helpers effectively. You should read it. I agree with everything he said. And yet here I am writing a rebuttal.No, “rebuttal” isn’t right, because I don’t disagree with Garrett at all. If you and your team are stuck with the canonical Rails front-end toolkit of ERB partials and helpers, you should absolutely follow Garrett’s advice. But I want to offer a different answer, and that’s to throw out ERB partials and helpers altogether, and use Phlex instead.
Say No To Partials And Helpers For A Maintainable Rails Front-End #ruby #rubydeveloper #rubyonrails #Partials #Helpers #Maintainable #Rails #Front-End https://rubyonrails.ba/link/say-no-to-partials-and-helpers-for-a-maintainable-rails-front-end