Table number conversion and display no of records above the table

http://furious-earth-6304.herokuapp.com/phone_records/search?utf8=✓&city_id=1&search_by=name&search=A&match=starts_with&commit=Search

in this how to convert Tel.no table displaying numbers 234567.0 to 234567

how to add caption above table that to display no of records

for code please refer

please any help would be great…

If the Telephone numbers are stored as :integer in your database (your migration shows it as string) it will display as you described.
Of course, you can take each returned value and add xxxx.to_i (in this case, since we know the decimal portion is always zero)


@phone_records.count

Will give you the number of records.