Mongoid rails 3

Hi,

I am using mongoid, rails, mongohq. I have to tables Category and SubCategory Category references_many :subcategories SubCategory referenced_in :category

Now I have a form in view. In view, when user chooses a category, an ajax request is made to get dependent subcategories. But problem is, it is returning empty array in response(this is using mongohq). It is working normally as expected when using local mongodb.

Can anyone help me.

Thanks,

Aashish