# Editable

**URL:** <https://www.ruby-forum.com/t/editable/103622>\
**Category:** Rails\
**Created:** [May 8, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/editable/103622 "2007-05-08T15:29:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [May 8, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/editable/103622/1 "2007-05-08T15:29:06Z")

</div>

In Rails is there editable combo box?

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [May 8, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/editable/103622/2 "2007-05-08T15:30:11Z")

</div>

Selvaraj wrote:

> In Rails is there editable combo box?

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [May 8, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/editable/103622/3 "2007-05-08T15:41:33Z")

</div>

Rails has exactly the same form elements as every other web based  
application. So the direct answer is no, because web forms don’t  
provided them.

However, you’re in luck! Rails has excellent support for AJAX through  
Prototype, which has an auto-completing text field, which should give  
you what you want. Maybe even better than what you want. And don’t  
fret, it’s pretty easy to use.

The only down side is that your page will then require JavaScript, so  
you’ll either need to require JavaScript for your application or make  
sure your form will still function reasonably well without JavaScript.

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [May 9, 2007, 9:40am UTC](https://www.ruby-forum.com/t/editable/103622/4 "2007-05-09T09:40:49Z")

</div>

On 08 May 2007, at 15:52, Selvaraj wrote:

> Thanks Robert,
> 
> Its very useful news for me, I have a doubt in auto completion  
> Can I  
> list the value without typing any character means just clicking on  
> that  
> text box?..

There are several comboboxes around, one in Ext JS at http://  
[extjs.com/](http://extjs.com/) (which is compatible with Prototype/scriptaculous nowadays).

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [May 10, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/editable/103622/5 "2007-05-10T17:05:35Z")

</div>

Right, I figured some would be available, It’s just, unfortunately,  
not a standard HTML form element, so it would need to be done using  
AJAX/JS/DHTML style components.

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [May 8, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/editable/103622/6 "2007-05-08T15:52:20Z")

</div>

Robert W. wrote:

> Rails has exactly the same form elements as every other web based  
> application. So the direct answer is no, because web forms don’t  
> provided them.
> 
> However, you’re in luck! Rails has excellent support for AJAX through  
> Prototype, which has an auto-completing text field, which should give  
> you what you want. Maybe even better than what you want. And don’t  
> fret, it’s pretty easy to use.
> 
> The only down side is that your page will then require JavaScript, so  
> you’ll either need to require JavaScript for your application or make  
> sure your form will still function reasonably well without JavaScript.

Thanks Robert,

Its very useful news for me, I have a doubt in auto completion Can I  
list the value without typing any character means just clicking on that  
text box?..
