josevalim/inherited_resources — Issue #179: belongs_to doesn't appear to use default resource_name
Author: gitt
Created: 2011-11-11 10:31:09+00:00
State: open

Take the following into account:

``` ruby
class SetsController < ApplicationController
belongs_to :parent
defaults :resource_class => Collection
end
```

The above throws the following exception:

```text
undefined method `sets' for #
```

Looking through the documentation, I cannot seem to locate a way to specify the association, if it differs from the controller name. I'm sorry if I missed this in an existing ticket or the documentation, any help would be appreciated.