Updated Rails file.