Member on has_one or has_many


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 ]

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…


PS I guess If I want to use :only and :except for the has_one this
also applies…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs