josevalim/inherited_resources — Issue #207: redirect show action
Author: wjlroe
Created: 2012-02-19 01:52:01+00:00
State: open

There doesn't appear to be a way to redirect the show action.

I want to do something of the sort:

```ruby
def show
show! {
if request.path != user_path(@user)
redirect_to user_path(@user), :status => :moved_permanently
end
}
end
```

Basically redirecting a surrogate ID to the slug. I tried returning the user_path, but whatever I do I get an error indicating show! ran render after the redirect: `AbstractController::DoubleRenderError`

How can I do this - use both friendly_id redirecting and inherited_resources?