norman/friendly_id — Issue #209: ActiveRecordModel#friendly_id quit working in Rails 3.2 with friendly_id 3.3?
Author: joevandyk
Created: 2012-01-13 17:38:09+00:00
State: open

Worked fine in Rails 3.1, quit with Rails 3.2.0.rc*. I'm using the latest friendly_id 3.3.

```
class Product < ActiveRecord::Base
has_friendly_id :name, :use_slug => true
...
end

1.9.1 :001 > p = Product.find 'joe-product'
(1.5ms) SELECT sluggable_id FROM slugs WHERE ((slugs.sluggable_type = 'Product' AND slugs.name = 'joe-product' AND slugs.sequence = 1))
Product Load (1.9ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", "42"]]
=> #
1.9.1 :002 > p.friendly_id
=> nil
1.9.1 :003 > p.to_param
=> "42"
```

I would expect `p.friendly_id` to do a sql query to find the latest slug.