I am unable to get Octopus to work inside of a block.
When I do this it does not use the shard, it just uses the default db in database.yml.
User.create(:name => "Mike")
The same thing happens when I use the around_filter inside the Controller. It doesn't use the shard I specify at all.
The only way I'm able to specify the shard db is by using this syntax:
Do you guys know of anything that would cause this? It would simplify my code a lot of I could use the other block methods.
My shards.yml file looks like this example:
Based on the example you need to make sure you're using the same names that are defined in the shard.yml file (shard_one and shard_two vs slave_two and shard1) .