Hi,
I was wondering if it is possible todo something like this in the
routes file:
map.namespace(:admin) do |admin|
admin.resources :dashboard, :only => [ :index ],
:has_one => :something, :member => [ :action => :get ],
:has_many => [ :something_else ,:more_something ]
end
The problem is the member in the has_one declaration, the member is
added to the dashboard and not the something controller. I tried
wrapping in [] and {} but no luck…
I got it working using :dashboard do BUT I would like to have the
nice :has_one :has_many…
Anyone?
PS I guess If I want to use :only and :except for the has_one this
also applies…