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!