Displaying 1 result from an estimated 1 matches for "collection_instance_variable".
2006 Jun 17
0
Dynamic forms containing collections
...if @history_size == 1" path of the code below works
fine!) However, when using FCCs there needs to be a loop over the
instance variable which "contains all the fields" to display input
fields for, as seen in the "else" path of my code.
The problem here is, that @entry and @collection_instance_variable
have to change dynamically! I know the names that they should have,
but I don''t know how to write code, that generates a for loop with
those 2 instance variables properly named. Moreover, it is necessary,
that @entry and @model_name always resolve to the same string, in
order for FCC to wo...