Shopify/batman — Issue #256: batman model#find problem with rails 3.1 and mongodb
Author: vijayonrails
Created: 2011-11-28 14:47:29+00:00
State: open

i am a new to batman. i am creating application using rails 3.1 + mongodb + batman-rails.
i used @primaryKey to define mongodb's primary key as '_id' .
but the problem is in find method which trying to convert my string primary key to integer.
for example if my primary key is '4adcxxxxxxxxxxx' it converts it to '4.json'. any solution to this problem.