Hi,
my environment and code related with the problem are here:
http://gist.github.com/263390
and i get this error:
Can't get singleton resource from class Catalog. You have have
probably done something like:
nested_in :catalog, :singleton => true # <= where this is
the first nested_in
You should tell resources_controller how to find the singleton
resource like this:
nested_in :catalog, :singleton => true do
Catalog.find(<.. your find args here ..>)
end
Or:
nested_in :catalog, :singleton => true, :find => <..
method name or lambda ..>
Or, you may be relying on the route to load the resource, in
which case you need to give RC some
help. Do this by mapping the route segment to a resource in the
controller, or a parent or mixin
map_enclosing_resource :catalog, :segment => ..., :singleton
=> true <.. as above ..>
can you drive me to a solution for polymorphic associations
nested in namespaced parents please?