I am using a legacy db which has the column for the
primary key defined as a decimal number rather than
an integer, even though only integer values are stored
in in.
When rails generates a url it is of the form
/controller/action/123.0
This works, but I would prefer
/controller/action/123
What would be the best way to automatically force the
convesion to integers? I have attempted to
redefined the ‘id’ method in the model to convert
the value to an integer, but this does not work.
Thanks in advance,
donmc