Added rails controller