Added post query and store in MongoDB by mongoid