Form Elements Doubt

Hi to ROR pepole!

I am new to RoR!

I want to get the form elements values in the controoler file or model
file

My requirement is mainly I have one text box based on that
I have to search the values from database.

Can u please help me!

Sarala!