model

HTML Code:
class TelephoneRecords < ActiveRecord::Base
   attr_accessible :rowid, :selectcity, :match , :phone_no, :name, :address 
   validates :selectcity,  :presence => true
   validates :match,  :presence => true
   validates :phone_no,  :presence => true
   validates :name,  :presence => true
   validates :address,  :presence => true
end
controller
HTML Code:
class TelephoneRecordsController < ApplicationController
 
def index
 @telephone_records = TelephoneRecords.all
end	

end
index view
HTML Code:
<%=form_for @telephone_records do |f| %>  
<%end%>