map.resources :testimonials, :path_prefix => "/admin" Try that. ;)
Sean On 4/3/07, Karl Doody <[EMAIL PROTECTED]> wrote: > Has anyone got map.resources to work within Radiant admin/extensions. > The problem I have is that if I: > > map.resources :testimonials > > ...everything works fine but everything operates out of /testimonials > not /admin/testimonials which means that when I create a page with a > slug of 'testimonials' it all fails horribly when I try to visit that > page (because it is calling the resourced controller not the radiant > page). > > I could go back to Rails's :controller/:action's but thought I'd give > this a go (and my present app does use it to an elegant end). > > Any one with any experience of this? > > Kind regards, > -Karl > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
