Add inject in ruby post