On Mar 20, 9:21 am, MarkMT <[email protected]> wrote:
>
> What is the merb way to provide forms with fields for multiple
> instances of the same model? Rails has the bracket notation and also
> the ':index' attribute on input fields, but I'm not having any success
> making those work in merb.

After some trawling through code, it appears that merb does not handle
this situation.

I've been looking at the possibility of hacking the form helpers to
insert an index into the name attribute of <input> tags. I think this
can work for existing records, but for new records, where Rails allows
something like form_for 'some_model[]' , it looks like some changes
would also be required somewhere in the request handling process.

Advice still welcome...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to