How to I solve this error I get in rails development.log:
ActionController::UnknownFormat (PostsController#index is missing a template for this request format and variant.
request.formats: ["application/vnd.api+json"]
request.variant: []):
What I'm doing
I'm trying out the jsonapi resources gem with rails 5.1 with curl. There's a demo app https://github.com/cerebris/peeps for reference.
curl -i -H "Accept: application/vnd.api+json" -H 'Content-Type:application/vnd.api+json' 'http://localhost:3000/posts?user_email=example@example.net&user_token=ZuqysdFsH5pfhAUTDpe3'