3 ms·
I am still wondering if ViewComponent will ever officially make it into Rails.
by ksec 6y ago
I am still wondering if ViewComponent will ever officially make it into Rails.
- pvsukale3 6y agoIt is very easy to add. Rails 6.1 introduced a way to use the m without a monkeypatch (https://github.com/rails/rails/pull/36388 https://github.com/rails/rails/pull/36388). But yeah having them natively inside Rails will help with greater adoption of components into Rails way.
- ksec 6y agoGenerally speaking having a default way ( or option within default ) of doing things in Rails make things a lot easier for newcomer and maintenance. I sort of wish Rails is more of Github's Rails rather than Basecamp's rails.