From: "Prajwal B." Date: 2012-05-31T02:20:09+09:00 Subject: displaying the same output 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.findall) end end 2.created a form with this action index.html.erb
Select City
Search By
Search Key
Match

3.areawise.html.erb <% for telephonerecords in @telephone_records-%> Phoneno%=telephonerecords.phone_no%> - Name%=telephonerecords.name%> -Address: <%=telephonerecords.address%>
<%end-%> -- Posted via http://www.ruby-forum.com/.