-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sharding data does not work. #349
Comments
what does |
Thats Model::ActiveRecord_Relation |
what is the version of the plugin?
|
This my project gem list.
It is not work. but this code work. |
Hi! leikind.
Nice to meet you.
There is one issue.
Sharding data does not work.
I am sharding data using an octopus gem.
How do I get it to run? Please help me
My gem version info:
rails (4.2.6)
ar-octopus (0.8.6)
wice_grid (3.6.2)
This is my code:
Controller def index
# using method in octopus gem
grid_data = Model.using(:shard_name).where(id: 1)
@grid = initialize_grid(grid_data)
View index
<%= grid(@grid) do |g|
g.column name: "name" do |data|
data.id
end
end -%>
error log:
The text was updated successfully, but these errors were encountered: