Hi,
I am trying to add a Mongoid array field to simple form. Currently it renders the array as a string "[ data, other_data ]" which is then sent back to the controller as a string not an array.
I want to add my own custom input to render each input as it's own field with overridden input names.
I am trying to implement a solution like this:
E.g. if the instance name is "test" and the array field name is "test_array" i want the each array item to have an input name such as "test[array][]".
I can't figure out how to override the attribute name unless i manually construct the "name" and override it in the html input options.
Any thoughts about how i can achieve this without hacking?
Thoughts appreciated.
cam