RubyFlow The Ruby and Rails community linklog

How to include Rails Associated Model Data in React components

A short post on using jbuilder in Rails to send JSON data to React components. When you start using React with Rails, one of the frustrating problems you quickly run into is trying to access associated model data from your React component. This article shows one way to work around that issue.

https://learnetto.com/blog/how-to-include-rails-associated-model-data-in-react-components

Comments

For a much easier solution check out http://ruby-hyperloop.io

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