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...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to