Comments (3)
When you configure Dynamoid, you need to set the adapter configuration option to 'aws_sdk' rather than the default 'aws-sdk' option, which is incorrect.
This pulls in the correct adapter for the ruby dynamo sdk. You get this error when you include an index because this exercises a piece of code that necessitates accessing dynamo. You should get this same error if you were to run Article.new even in the first example.
from dynamoid.
Where to set the configuration? Any sample code link?
from dynamoid.
Just add this wherever you do the initialization for your site or in spec_helper.rb if you just want to run tests.
Dynamoid.configure do |config|
config.adapter = 'aws_sdk'
end
from dynamoid.
Related Issues (20)
- Support for ActiveRecord "subset conditions" HOT 2
- Record should be destroyed whether it has a range key or not
- No support for BETWEEN queries on range keys HOT 2
- String max length HOT 2
- Model reload method should not silently fail to reload
- Assigning associations to a model automatically persists that model to the table.
- Getting weird "Table already exists" error when the table exists V.S. "Resources not found" error when table is deleted. HOT 3
- Exception when creating new User HOT 1
- Problem while creating new instance
- Retries in dynamoid HOT 2
- Making multiple table update atomic HOT 3
- load fails on finding additional attributes
- aws_sdk Adapter - require': cannot load such file -- aws (LoadError) HOT 2
- Deprecate this gem officially HOT 4
- Rails 4.2? HOT 1
- AWS v2? HOT 1
- Dynamoid::Persistence#update! should be running :save callbacks HOT 1
- Dynamoid::Persistence#save never runs :update callbacks
- Error "value must be enumerable"
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 dynamoid.