Ruby On Rails Add Element To Array Java