updated to new rails and extr gem