added gem, moved flats fields_for to partial