Search⌘ K
AI Features

Using Presenters

Explore how to implement presenters in Rails using SimpleDelegator or the draper gem to manage view logic more cleanly. Learn to convert helper methods into presenter methods and write simplified tests that run faster without Rails dependencies.

View testing presenters

Testing helpers is handy, but if we have a lot of logic in the helpers, we recommend moving the logic into presenter objects. This is especially true if we have a series of helpers that take the same argument.

Ruby presenters

There’s nothing complicated about using ...