Fixed error in mongoid generator, added 'pretty' URLs