Here is what I’d like to be able to do:
I want to be able administer routes using a rails application. So an
would list routes and give users the ability to manage these on the fly:
class RoutesController < ApplicationController
very simple example
Routes.connect ‘customurl’, :controller => “customcontroller”,
:controller => “customaction”
Routes.save # save user created routes back to routes.rb file or
some other storage mechanism
@allroutes = Routes.find(:all)
Is this possible?
Ideally what is required is direct access to
in the ApplicationController if this can be achieved?
Any help much appreciated,