DEV Community

Discussion on: Building and Consuming a JSON API with Rails and React

Collapse
 
kacalamaka profile image
Kacalamaka

Hi, I have an error when I run the command "foreman start -f Procfile.dev"

The error message are written below:

D:/CVWO/project/config/routes.rb:5:in block (2 levels) in <top (required)>': undefined methodjsonapi_resources' for #ActionDispatch::Routing::Mapper:0x... (NoMethodError)

Can somebody help me resolve this isssues?
I try look up for solutions on the internet, but there weren't any. I am also green to react-rails.

Collapse
 
travisryte profile image
Thuya

Did you install the gem jsonapi_resources?