Writting on text_field

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