Monday, January 18, 2016

Adding a spinner (loading bar) in your rails 4 application.

Add the following code to your rails application.js file.

Even though the code is pretty simple it ain't properly available in Stack Overflow questions and blog posts. To create a beautiful experience you can use spin.js file library or a simple gif image in the spinner div.