Converting Number into Integer in ruby

I am working with a legacy oracle database. The primary key is not defined as an integer but as a number. This results in a url with an id as a number, such as 1234.0 instead of 1234. It works fine, but I would prefer 1234 to be displayed in the url.

The thing used for urls etc. is the to_param method, you may have more luck doing your coercing there.

Fred