找不到jsonapi解析器0.1.1

当我运行rails服务器时,出现’找不到jsonapi-parser-0.1.1.beta2’错误。

~/ruby_on_rails/test/sampleapp$ rails s Could not find jsonapi-parser-0.1.1.beta2 in any of the sources Run `bundle install` to install missing gems. ~/ruby_on_rails/test/sampleapp$ bundle install Fetching gem metadata from https://rubygems.org/......... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Could not find jsonapi-0.1.1.beta4 in any of the sources 

 bundle update jsonapi 

应该解决它

jsonapi beta4不可用。 只有beta5,beta 1,beta2可用。 你可以在这里找到这个

如果没有,请在gemfile中添加此行,然后运行bundle install。

gem 'jsonapi-parser', '~> 0.1.1.beta2' gem 'jsonapi', '~> 0.1.1.beta5'

这可能是由于需要jsonparser的方法,而这个方法不包含在rails应用程序中。