change has_many to rails 4 format