Handmade Rails presenters
The presenter pattern is one possible way to move logic from your views into a place where it’s not only better suited, but can also be reused. In this article, I want to offer a lightweight implementation that both explains some specialties when used with Rails helpers and doesn’t need any external dependencies. https://christoph.luppri.ch/articles/2015/07/04/handmade-rails-presenters/
Post a comment