Comments (10)
Hey @sebbean,
Which version of contentful_model
and of the contentful
gem are you using?
Cheers
from contentful_rails.
GIT
remote: https://github.com/sebbean/contentful_rails.git
revision: 201881d32d0b099acb51f59c882f23c5afd005eb
branch: patch-1
specs:
contentful_rails (0.3.0)
contentful_model (>= 0.1.7)
rails (>= 4.1.8)
redcarpet (~> 3.2)
from contentful_rails.
Hey @sebbean,
Could you try updating to contentful_model ~> 0.2
. That may fix your issue.
If not, I'll take another look into it.
Cheers
from contentful_rails.
Why not update the gemspec to use that higher model version? gem 'contentful_rails' doesnt have any way of specifying the contentful_model version.
Updating the gemspec in my branch:
@dlitvakb #27
from contentful_rails.
contentful_model features seem to be busted:
I can access data with model.fields[:relation].map(&:resolve)
but it doesnt do any of the things that contentful_model supposedly provides.
from contentful_rails.
from contentful_rails.
seemed to fix the issue by removing version constraints from gemspecs.
this is how I am able to use these gems successfully:
gem 'contentful_model', github: 'sebbean/contentful_model', branch: 'patch-1'
gem 'contentful_rails', github: 'sebbean/contentful_rails', branch: 'patch-1'
from contentful_rails.
eh, doesnt really work actually. just loaded the correct classname using the fields[:relationship].map(&:resolve)
hack
from contentful_rails.
Thanks for digging into this,
Regarding contentful/contentful_model#56 I just made a comment there.
Cheers
from contentful_rails.
My issue was actually wrongly set default_locale
I had:
config.default_locale = :en
noticed i should have had:
config.default_locale = 'en-US'
from contentful_rails.
Related Issues (20)
- Concern with `eager_load!` HOT 14
- Subclassing MarkdownRenderer HOT 5
- Missing attr_writer for attributes with nil values HOT 3
- #delete_matched not supported by all ActiveSupport cache types HOT 2
- alias_method_chain call in timestamps.rb causes deprecation warning HOT 4
- Rails 5 support? HOT 1
- enable caching support HOT 7
- Can't load gem without ActiveRecord HOT 6
- Webhooks Rails 5 HOT 6
- Webhooks fail in Rails 5.1 HOT 2
- Content types caching blowing up VCR on CI HOT 1
- Release webhooks fix? HOT 1
- Load error HOT 5
- Support Contentful Model 1.0 HOT 2
- OOM errors in Docker HOT 9
- Webhook Engine does not provide the /debug route as expected HOT 1
- How do you perform the russian nesting doll cache?
- "Only Redis glob strings are supported: " on unpublish when using redis as cache store
- Eager load in a to_prepare block
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 contentful_rails.