Adding a route from a Radiant Extension

11 views
Skip to first unread message

Chris Toynbee

unread,
May 14, 2012, 12:12:52 AM5/14/12
to Radiant CMS
Hi,

I was wondering if anyone has any experience adding routes from a
radiant extension.

I've found something like this:

ActionController::Routing::Routes.add_named_route(
'asset',
'/asset/:action',
:controller => 'asset')

but I haven't got it working yet.

This looks like it would map an action you create.

If this is right - where would be the place to put this in my
extension e.g. lib directory?

I'm using Radiant 0.8.0.

Cheers,

Chris.
Reply all
Reply to author
Forward
0 new messages