Many users try to overwrite the to_param method of AR to add more expressivness and value of Seo to the url using something like the following:
def to_param id.to_s + title. parameterize + '-' + author. parameterize end
That generate url like that:
http://host/books/100000-goodbook-guest
The id passed to AR is '100-goodbook-guest' that type_casted to integer in a trasparent way it will became 100.
My proposal is to permit to read also url like the following
http://host/books/goodbook-guest-100000
In other words, the id string passed to AR could have integer at the begining or end of itself