Check out SQLFORM.smartgrid http://web2py.com/books/default/chapter/29/7#SQLFORM.grid-and-SQLFORM.smartgrid-%28experimental%29
Also the image blog example gives a viable approach, though the relationship is one-to-many http://web2py.com/books/default/chapter/29/3#An-image-blog Also I think you could use components: http://web2py.com/books/default/chapter/29/12 On Jan 16, 5:34 am, Thiago Magro <[email protected]> wrote: > 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

