I want to reload a particle every 3 seconds in a "new" view in my rails application.
I have this in my new.html.erb
<h1>Controller#new</h1> This is my static content <%= render partial: 'dynamic' %> More Static content
How to get this partial reboot every 3 seconds? Should I use unobtrusive javascript for this? How can I achieve this through ujs?
javascript ajax unobtrusive-javascript ruby-on-rails partial
Michael stark
source share