Displaying the same output for whichever values i select in the form

how to display the exact results by selecting the values in form
selectcity and match and print matching phone_no,name and address in
table. these is what i have done so far newbie in rails any idea will be
nice…

1.controller

class TelephoneController < ApplicationController
def index
end

def AreaWiseSearch
@telephone_records = TelephoneRecords.all
end
end

2.created a form with this action index.html.erb

Select City BAGBAHARA BALODABAZAR BASNA BHATARPARA BILAIGARH DEOBHOG DHAMTARI FIGESHWAR gariyaband KASDOL KURUD MAHASAMUND MAINPUR MANPUR Nagri NEORA RAIPUR SARAIPALI
Search By Name Address Telephone No.
Search Key
Match Exactly Starting With

3.areawise.html.erb

<% for telephonerecords in @telephone_records-%> Phoneno%=telephonerecords.phone_no%> - Name%=telephonerecords.name%> -Address: <%=telephonerecords.address%> <%end-%>

Sorry but you’ve hit the wrong forum. This one is for Ruby (the
programming language), not Rails (the web framework)