News for hackers. Stuff that matters.
Re:Hexagonal Architecture Guidelines For Rails by bestie on Tuesday March 18, 2014 @02:30PM (#7423939)
I honestly can't think of any job I'd be happy leaving in the hands of a controller beyond the obvious HTTP routing and view rendering concerns.

Even adding a presenter, as I prefer, serializing your data should be handled by your service layer.

I'm not advocating writing an ORM, just some simple data translations from the raw database row data to a persistence-free domain object.

There are no comments on this comment yet.