Partial reuse between Rails & JS, the easy way!
Writing JavaScript code to display data retrieved from a JSON API can be easy and clean if you use templates. But what is the easiest solution to reuse view partials between the Rails application and the JavaScript code? In this article I explain my solution which works out-of-the-box.
Post a comment