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:
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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
andPOST
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 thepost
ornew_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!
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!