The following path throws up an error:
= link_to 'Subscribers', user_subscribers_path(current_user)
undefined method `user_subscribers_path' for <#:0x007f9b240b3148>
I am not sure why.
I have defined my routes as follows:
resources :users, :only => [:show, :index], :has_many => :subscribers, :shallow => true
Thanks!
EDIT rake routes does not show anything particularly useful. The only two lines with subscribers are:
users GET /users(.:format) users#index {:has_many=>:subscribers}
user GET /users/:id(.:format) users#show {:has_many=>:subscribers}