with ruby v2 and rails v4