json - Rails 4.2 - Grape - IOError: Not opened for reading -


i'm building api grape on rails 4.2. here's link repo on github.

on frontend, have javascript application built emberjs. here's link repo on github well.

i have updated following gems can format responses of api following json api standard, appears required update ember 1.13, ember 2.0.

gem "active_model_serializers", '0.10.0.rc2' gem "grape" gem "grape-active_model_serializers", :git => 'https://github.com/jrhe/grape-active_model_serializers.git' 

after that, i've got following error when call api: ioerror: not opened reading

according information gathered here , there, suspect conflict how format json.

in default.rb, file inherit api controllers, when comment line:

formatter :json, grape::formatter::activemodelserializers 

i don't have error anymore, response isn't serialized.

my questions are:

  • do have idea how can solve this?
  • do think it's relevant use grape build api in rails app? rails 5 coming, isn't better user rails-api , rewrite whole app? mean, i'm starting, it's maybe right time that...

let me know if need more information.

thanks in advance help.

i ended rewriting whole api using jsonapi-resources.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -