Hello everyone,

I have a question with forms for many to many relations and I just cant
find the answer.

Its possible to have forms inside forms?
For example:
I have a model Food that has inside a lot of components(nutrients). So Food
has many components.
Is there any chances that I could create a form for a food, and on the same
form create a lot of "subforms" to create each food component as well?
And going further, is it possible to edit a food and its components on the
same form?

What I looking for is something like acccept_nested_attributes from Rails.

Thanks for any help!

Thiago

Reply via email to