Answer the question
In order to leave comments, you need to log in
What's the point of using Presenters in Ruby on Rails?
For example, if I can shove all the controller processing into my service object, then why use Presenters?
Example:
def index
@todo = Todo.new
end
Answer the question
In order to leave comments, you need to log in
Service Object (aka Interactor, aka Use Case) should not have the slightest relation to the view layer at all - they exist at different levels of the hierarchy.
Read Clean Architecture.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question