Rails impelemtation of shakhak