# Simonp37

**URL:** <https://www.ruby-forum.com/t/simonp37/112186>\
**Category:** Rails\
**Created:** [August 16, 2007, 5:15am UTC](https://www.ruby-forum.com/t/simonp37/112186 "2007-08-16T05:15:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonp37](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@simonp37](https://www.ruby-forum.com/u/simonp37)\
**Post date:** [August 16, 2007, 5:15am UTC](https://www.ruby-forum.com/t/simonp37/112186/1 "2007-08-16T05:15:42Z")

</div>

I have a single table in my database and in me controller  
(principalcontroller.rb)  
i need to put a method to find regs in the table.

def prebusca # here i put the form in the view  
@persona = Persona.new(params[:persona])  
if request.post?  
redirect\_to :action =\> :buscar  
end  
end

def buscar # here a try to show the recuest  
@persona = Persona.find(:first, :conditions =\> “nombre =  
@persona.nombre”)  
end

thaks!
