I want to use fields_for
on a subset of records in an association.
I have a Month
model, which has_many :payments
.
But in my form in my view I only want to have fields_for
some of those payments. For example:
- fields_for @month.payments.large
This doesn't work.
Can I pass a set of records to fields_for
, rather than the usual symbol (fields_for :payments
) approach?