norman/friendly_id — Issue #251: Redirect and Routes
Author: weblee
Created: 2012-03-06 22:37:07+00:00
State: open

Hey Norman, All

1, I havehistory enabled and have been playing with it. I have an issue where if I change my slug it should redirect but instead it just shows me a redirect page "You are being redirected.".

```ruby
class Page < ActiveRecord::Base
extend FriendlyId
friendly_id :url, use: [:slugged, :history]
end
```

2, Im not sure if this is an issue as such but I would like to be able to route to a friendly_id to the root of the site. IE I have a page controller for CMS pages and would like to show them as root ie. domain.com/slug-url I have tried a match in the route like below but it just redirects me "well just sows me the redirect page"

``` ruby
match '/:id' => 'pagess#show'
```

I am using version 4.01

Hope you can advise and thanks for such a great gem.