View Layer in Ruby Frameworks
Ivan Shamatov
• Minsk, Belarus
•
Talk
Date: April 02, 2017
Published: May 02, 2017
Announced: unknown
Ok, we've got M-models: ApplicationRecord.new
We've got C-controllers: ApplictionController.new
And of course V-view: SWOOSH
Ok, we have some magic here inside Rails, but what can we use to have real view layer. ERB? That's just templates.
I would like to make an overview of some solutions we already have.
* Arbre / RABL as DSL to render
* Presenters / Serializers / Grape-entities for logicless view-templates
* Cells as View Component / Hanami-view / Dry-view with really similar approach of separation view-model from template.
RubyConfBY 2017