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…
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.