rails needs hash with the object on key :object