DEV Community

tdak
tdak

Posted on

A month spent moving partials into components

Today, I have finally finished converting all of the many partials in my app (TeamHQ) into components. Over the last few months before this process, I have come to experience the pain of too many partials. I have learnt how partials work and how they can slow down your application's views.

The solution was simple, ViewComponents. It had decreased loading times, made my view directory smaller and enforced better system architecture practices.

Components from ViewComponents are the way of the future of Rails application development. Check it out.

If you're interested in learning more about why partials had made my application slow, check out my blog post on that - How rendering partials can slow your Rails app to a crawl

Top comments (1)

Collapse
 
decentralizuj profile image
decentralizuj

Try Matestack-UI, nice open source project. Let you write all frontend in ruby.