# Ajax form with sub items?

**URL:** <https://www.ruby-forum.com/t/ajax-form-with-sub-items/88266>\
**Category:** Rails\
**Created:** [March 9, 2007, 9:46am UTC](https://www.ruby-forum.com/t/ajax-form-with-sub-items/88266 "2007-03-09T09:46:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sven\_Magnus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@Sven\_Magnus](https://www.ruby-forum.com/u/Sven_Magnus)\
**Post date:** [March 9, 2007, 9:46am UTC](https://www.ruby-forum.com/t/ajax-form-with-sub-items/88266/1 "2007-03-09T09:46:21Z")

</div>

Hi,

I’m new to rails. I’m trying to make an Ajax form to add/edit items,  
with a “subform” to add/edit subitems on the same form. But I have no  
idea how to begin with this, or what terms to search for tutorials. So  
if anyone can point me in the right direction, or write up basic  
explenation, it would be greatly appreciated.

Thanks,

Sven Magnus

---

<div class="post-metadata">

**Author:** ![Sven\_Magnus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@Sven\_Magnus](https://www.ruby-forum.com/u/Sven_Magnus)\
**Post date:** [March 15, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/ajax-form-with-sub-items/88266/2 "2007-03-15T19:00:55Z")

</div>

Guest wrote:

> Sven Magnus wrote:
> 
> > Hi,
> > 
> > I’m new to rails. I’m trying to make an Ajax form to add/edit items,  
> > with a “subform” to add/edit subitems on the same form. But I have no  
> > idea how to begin with this, or what terms to search for tutorials. So  
> > if anyone can point me in the right direction, or write up basic  
> > explenation, it would be greatly appreciated.
> > 
> > Thanks,
> > 
> > Sven Magnus
> 
> Hi Sven,  
> What do you mean by “subform”. I need to make forms where a user can  
> add/edit more than one of each item. Maybe it’s the same thing. I found  
> [this  
> article](http://ajax.phpmagazine.net/2007/03/frevvo_create_your_web_20_form.html) and thier features say they can do this.

I guess that link is  
[http://ajax.phpmagazine.net/2007/03/frevvo\_create\_your\_web\_20\_form.html](http://ajax.phpmagazine.net/2007/03/frevvo_create_your_web_20_form.html)  
and the company’s link is [http://www.frevvo.com](http://www.frevvo.com)

---

<div class="post-metadata">

**Author:** ![Sven\_Magnus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@Sven\_Magnus](https://www.ruby-forum.com/u/Sven_Magnus)\
**Post date:** [March 15, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/ajax-form-with-sub-items/88266/3 "2007-03-15T18:59:44Z")

</div>

Sven Magnus wrote:

> Hi,
> 
> I’m new to rails. I’m trying to make an Ajax form to add/edit items,  
> with a “subform” to add/edit subitems on the same form. But I have no  
> idea how to begin with this, or what terms to search for tutorials. So  
> if anyone can point me in the right direction, or write up basic  
> explenation, it would be greatly appreciated.
> 
> Thanks,
> 
> Sven Magnus

Hi Sven,  
What do you mean by “subform”. I need to make forms where a user can  
add/edit more than one of each item. Maybe it’s the same thing. I found  
this  
article and thier features say they can do this.

---

<div class="post-metadata">

**Author:** ![Sven\_Magnus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@Sven\_Magnus](https://www.ruby-forum.com/u/Sven_Magnus)\
**Post date:** [March 9, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/ajax-form-with-sub-items/88266/4 "2007-03-09T14:56:08Z")

</div>

Hi Sven,

Sven Magnus wrote:

> I’m new to rails. I’m trying to make an Ajax form to add/edit items,  
> with a “subform” to add/edit subitems on the same form. But I have no  
> idea how to begin with this, or what terms to search for tutorials. So  
> if anyone can point me in the right direction, or write up basic  
> explenation, it would be greatly appreciated.

I highly recommend Cody F.'s RJS Tutorial. It’s in PDF, available  
for  
$10 at O’Reilly. Best $10 I spent on Rails (cause they wouldn’t let me  
buy  
half of AWDwR or Pickaxe 😉 )

Best regards,  
Bill
