Couldn't find User with ID=1

Try: model.find_by_id(id)