flyerhzm/rails_best_practices — Issue #66: Problem with inherited_resources and :except
Author: naumov
Created: 2011-10-16 20:48:34+00:00
State: open

When I use inherited_resources with defining actions with

```ruby
actions :all, except: [ :show ]
```

the following output is given:

```
restrict auto-generated routes (:only => [])
```

#### Example:

_routes.rb_

```ruby
namespace 'admin' do
resources :posts do
resources :comments, except: [:show]
```
_app/controllers/admin/comments_controller.rb_

```ruby
class Admin::CommentsController < Admin::AdminController
inherit_resources
actions :all, except: [ :show ]
end
```

#### Notice.
If provide ih actions without 'except' it works fine:

```ruby
class Admin::CommentsController < Admin::AdminController
inherit_resources
actions :index, :new, :create, :edit, :update, :destroy
end
```