# Tab control, indexing, editing without saving

**URL:** <https://www.ruby-forum.com/t/tab-control-indexing-editing-without-saving/91703>\
**Category:** Radiant CMS\
**Created:** [April 11, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/tab-control-indexing-editing-without-saving/91703 "2007-04-11T18:29:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_ASYoon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3d9bf3/32.png) [@Mark\_ASYoon](https://www.ruby-forum.com/u/Mark_ASYoon)\
**Post date:** [April 11, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/tab-control-indexing-editing-without-saving/91703/1 "2007-04-11T18:29:20Z")

</div>

Hello,

I’m trying to write a flexible address book extension. Each person has  
many locations (much as each page has multiple parts) and I want to be  
able to edit, add, remove locations without writing to the database.

I noticed that admin/page/edit uses a tabcontrol to give a name and  
index to each page part - is there any way of doing this without using  
tabcontrol?

–  
Mark A. Yoon  
Senior Web Applications/Software Engineer, Northwestern Radiology  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Mark\_ASYoon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3d9bf3/32.png) [@Mark\_ASYoon](https://www.ruby-forum.com/u/Mark_ASYoon)\
**Post date:** [April 12, 2007, 12:10am UTC](https://www.ruby-forum.com/t/tab-control-indexing-editing-without-saving/91703/2 "2007-04-12T00:10:54Z")

</div>

Mark A. Yoon wrote:

> I’m trying to write a flexible address book extension. Each person has  
> many locations (much as each page has multiple parts) and I want to be  
> able to edit, add, remove locations without writing to the database.
> 
> I noticed that admin/page/edit uses a tabcontrol to give a name and  
> index to each page part - is there any way of doing this without using  
> tabcontrol?

It’s done by using javascript to insert fields into the page form. The  
page edit screen was a pretty hacked up job. There is not anything in  
Rails that makes this sort of thing very easy. I’d suggest that you  
study the source…

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
