http://railts.ru//communication//forum//user//1616//