Comments (4)
Could you try replacing class: {Group: SerializableGroup }
with class: {Group: ::SerializableGroup }
?
from jsonapi-rails.
Thanks for your response, tried what you suggested but I got the same error message.
from jsonapi-rails.
Maybe a Rails autoloading thing? Is there a require
in the controller for the serializers/group_serializer
file?
Based on the original issue it looks like the name of the file (serializers/group_serializer.rb
) does not match the name of the class (SerializableGroup
) both because of the ordering of terms group
and serializable
and because the file name is serializers
while the class says Serializable
so the Rails autoloader might not be able to find and load that class dynamically.
from jsonapi-rails.
I had the same issue. Changed the name of the file to match the new Serializable class (Like this: serializable_equipment for the class: SerializableEquipment) and it worked for me.
It is as @matt-glover implied. A rails autoloading thing with the filename
from jsonapi-rails.
Related Issues (20)
- How to render hash HOT 3
- Is there any way to pass arguments to a relationship resource? HOT 1
- Fields of relationship objects are missing in result JSON HOT 3
- Trying to render STI classes gives a cryptic error
- Remove log message HOT 4
- Incomatible with rails 6 HOT 1
- snake case not working in include
- can't add custom message on jsonapi_errors, it a bug isn't it?
- Is there a way we could return something like this?
- how do I alter key format when deserializing
- KeyFormat breaks relationships HOT 1
- ActiveModel::Errors#keys is deprecated HOT 2
- Logs leaking to STDOUT when running specs HOT 1
- Failing spec not on GMT HOT 2
- CHANGELOG is outdated HOT 1
- Support Rails' `parsed_body`
- Specs do not pass against Rails edge HOT 1
- Still maintained? Need help?
- Drop Rails 5 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonapi-rails.