convert Post model into mongodb

We use the 'kaminari' pagination gem instead of 'will_paginate', because the
latter does not support Mongoid.