Refactor Rails reading note