re: Rails to Introduce View Components VIEW POST


Few months ago I rolled out a custom made component solution for a project I'm working on. It's much simpler than this as it still relies on standard rendering pipeline. It's basically a view model that is tightly coupled to a partial and is passed as the only local variable to it when rendered.

It works really well so far, and the resulting code is much easier to understand. I was wondering why nobody else is doing it, but well it seems that a lot of people have been doing it.

I hope that this gets merged to Rails, or at least gets published as a well maintained standalone gem.

code of conduct - report abuse