Using presenters and decorators to clean up your templates in Ruby on Rails

Ruby on Rails - Presenters & decorators

When developing a web application, templates usually need to implement some logic, especially conditionals. While it’s reasonable to have some, it’s a common necessity to implement more and more, cluttering templates with code that is not meant to be there.

In this course I’m going to show you two patterns which are commonly used in web development with Ruby on Rails: presenters and decorators. They are meant to move template logic to dedicated classes, so templates look cleaner and more object oriented.

Did you like it? Please share it:

Get my ebook for free

10 ideas that helped me become a better developer (and may help you too)

Subscribe to my mailing list and get my ebook on 10 ideas that helped me become a better developer.

About Me

David Morales

David Morales

I'm David Morales, a computer engineer from Barcelona, working on projects using Ruby on Rails and training on web technologies.

Learn More