updating for new rails version