Fixed Rails Reading and Writing