# Writting on text\_field

**URL:** <https://www.ruby-forum.com/t/writting-on-text-field/134207>\
**Category:** Rails\
**Created:** [April 8, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/writting-on-text-field/134207 "2008-04-08T21:28:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrianod](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c2a13f/32.png) [@adrianod](https://www.ruby-forum.com/u/adrianod)\
**Post date:** [April 8, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/writting-on-text-field/134207/1 "2008-04-08T21:28:47Z")

</div>

Hi, I am using the live search method from Rails CookBook book, and I  
would like to pass (and write) the parametters from the search to the a  
text\_field  
example:  
student -\> name, id  
college -\> id, student\_id

I would like to show in the /new view of college the student name and  
write in a text\_field (or hidden\_field) the student\_id  
I would like to do it using the live search and not using select or  
collections select since i would have like 400k students…

Thanks in advance
