# Â· is there way to set my text fields with searching paramete

**URL:** <https://www.ruby-forum.com/t/a-is-there-way-to-set-my-text-fields-with-searching-paramete/141779>\
**Category:** Rails\
**Created:** [June 30, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/a-is-there-way-to-set-my-text-fields-with-searching-paramete/141779 "2008-06-30T15:17:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemisphere](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/eb9ed0/32.png) [@hemisphere](https://www.ruby-forum.com/u/hemisphere)\
**Post date:** [June 30, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/a-is-there-way-to-set-my-text-fields-with-searching-paramete/141779/1 "2008-06-30T15:17:48Z")

</div>

i used a search action. i’m printing the results to same page but after  
searching, my text fields set to empty. but i want to see what i search.  
For exmple if i write to search textfield ‘This’ i want the textfield  
set to ‘This’ after searching not empty

---

<div class="post-metadata">

**Author:** ![hemisphere](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/eb9ed0/32.png) [@hemisphere](https://www.ruby-forum.com/u/hemisphere)\
**Post date:** [June 30, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/a-is-there-way-to-set-my-text-fields-with-searching-paramete/141779/2 "2008-06-30T15:51:06Z")

</div>

something like this:

\<%= text\_field(“search”, “”, :size =\> 17, :value =\>  
session[:search], :name =\> “search”) %\>

where the search text is stored in session[:search] and assigned to  
the value
