# Searching for records

**URL:** <https://www.ruby-forum.com/t/searching-for-records/84665>\
**Category:** Ruby\
**Created:** [February 6, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/searching-for-records/84665 "2007-02-06T20:33:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryjj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9d8465/32.png) [@jerryjj](https://www.ruby-forum.com/u/jerryjj)\
**Post date:** [February 6, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/searching-for-records/84665/1 "2007-02-06T20:33:02Z")

</div>

I am trying to create a form that will allow a user to enter an item  
number and goto the show page for that item. I can create the form on  
the page, but I do not know how to take the information given and pass  
it to a link to show that item. Another problem I am going to run into  
is that the show item is by mysql index number, rather than item  
number, which is user assigned when first entered.  
So I need to cross the number that is given to the form, to the index  
number and return that value into a link.
