Table number conversion and display no of records above the table✓&city_id=1&search_by=name&search=A&match=starts_with&commit=Search

in this how to convert 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)


Will give you the number of records.