reverted to older version of rails, should have backward compatibility untill version 2