Forum: Ruby on Rails Problem with SEO urls and the Find_By_ID() not working

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Steve S. (Guest)
on 2009-04-28 07:07
(Received via mailing list)
I have a problem where the app I am developing uses SEO friendly urls
using the to_params method.

When using the the finder method find_by_id('13-Some-other-text') it
is not finding the record.
The record is there.
If I put a to_i() on the value it works fine.

I thought ActiveRecord did this automatically

This topic is locked and can not be replied to.