07 Feb '12, 10pm

@srbaker @stevburkett this is the Presenter Pattern, the only thing I know by that name:

Thanks for this post. I've read all your other Presenters posts and have been thinking a lot about it, but I think this summarises very nicely. I haven't yet used Presenters myself, but I have an application which might benefit from it - in order to handle multiple associations concisely I've been doing things like defining methods on the association. One thing somebody told me about the other night was the "Simply Presentable" plugin by Rich Collins: http://simply_presentable.richcollins.net/. This seems to be trying to achieve the same sort of goals, although it also acts as a sort of object orientated alternative to simply_helpful. I don't know if you have seen this plugin and what your opinions are? One big difference I see if that you name your Presenters based on the name of the action, whereas the examples for "Simply Presentable" use the name of the model. I guess ...

Full article: http://blog.jayfields.com/2007/03/rails-presenter-pattern...

Tweets