Couple of mongoid related bugs fixed
Rails unknown format problem.