DEV Community

Discussion on: Rails with React - One Repo - Part 2

Collapse
 
harrymlevine profile image
Harry Levine • Edited

It is hard to say without seeing the error(s) and/or your code. For Ruby/Rails errors, you'll follow the server logs, which are in the tab you are running the rails s command.

Whenever you're working with React, or any JavaScript library, be sure to have the Chrome dev tools console open. That is where any JavaScript errors might be surfaced. Another place to look for JavaScript errors could be the tab you are running bin/webpack-dev-server in.

For monitoring the GET and POST calls being made when you visit the different routes, be sure to have the Chrome dev tools network tab open, and check for any non-200 statuses for the post or new_post calls.

Perhaps try comparing your code to the sample app:

github.com/oddballio/rails-with-react

You'll want to compare all of the files that have been touched as part of this tutorial, as well as the Gemfile and package.json files.

Hope that helps!

Collapse
 
cirogolden profile image
Ciro Golden

I got it to work!!! my Ruby wasn't the version it was on this tutorial and i was able to make everything work this time around! i'm very happy and excited to go to the next step finally!!
Thank you!