RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in