Map.resources and radiant admin

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

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,

map.resources :testimonials, :path_prefix => “/admin”

Try that. :wink:


Ooh, nifty!


Hi Karl,

Did this work out for you in the end?

I’ve managed to get map.resources working fine in my Radiant extensions
except for posting to the edit/update functions, whenever I try that I
the standard Radiant 404 Page Not Found page come up.

Anyone have some ideas on this one? I’m stumped.

Kevin A.

I’ve added this to the wiki

I find extensions a bit confusing, so I decided to start documenting
and hope that others will pitch in.

Are your controllers inheriting from Admin::AbstractModelController?


Hi Sean,

No, they are inheriting from ApplicationController


On 4/26/07, Sean C. [email protected] wrote:

Post: [email protected]

Radiant mailing list
Post: [email protected]

BN23 Search Limited is Registered in England
Company Number: 5323555
VAT registration Number: 896 69 0062

BN23 Search Limited
Temple Grove
Compton Place Road
East Sussex
BN20 8AD

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