example with mongo and rails