josevalim/inherited_resources — Issue #192: belongs_to with :collection_name does not work on shallow routes
Author: tmaier
Created: 2011-12-28 18:17:11+00:00
State: open

I'm aware of #119, but in my case I use shallow routes and not singleton.

```ruby
class UsersController < InheritedResources::Base
belongs_to :organization, shallow: true, collection_name: :employees
end
```

All my spec fail because it tries to use #users instead of #employees.

```terminal
5) Users GET /users/1/edit edit user emails
Failure/Error: visit user_path(user2)
NoMethodError:
undefined method `users' for #
# ./spec/requests/users_spec.rb:68:in `block (4 levels) in '
```