Nikola Đuza
Nikola Đuza's Blog

Follow

Nikola Đuza's Blog

Follow
Load Rails Partials on Demand with New Toggle Feature in render_async 2.1.1

Load Rails Partials on Demand with New Toggle Feature in render_async 2.1.1

Nikola Đuza's photo
Nikola Đuza
·Aug 19, 2019·

min read

render_async now allows you to load partials by reacting with a specific HTML element.

If you want your partial to be loaded when a button is clicked or hovered over, you can specify that in new render_async 2.1.1 version

Also, you can start and stop polling a controller action with render_async using the new toggle feature.

 
Share this