# Problem with SEO urls and the Find\_By\_ID() not working

**URL:** <https://www.ruby-forum.com/t/problem-with-seo-urls-and-the-find-by-id-not-working/166642>\
**Category:** Rails\
**Created:** [April 28, 2009, 5:07am UTC](https://www.ruby-forum.com/t/problem-with-seo-urls-and-the-find-by-id-not-working/166642 "2009-04-28T05:07:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![comtux](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@comtux](https://www.ruby-forum.com/u/comtux)\
**Post date:** [April 28, 2009, 5:07am UTC](https://www.ruby-forum.com/t/problem-with-seo-urls-and-the-find-by-id-not-working/166642/1 "2009-04-28T05:07:26Z")

</div>

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

Steve
