Updated Rails File