Displaying 1 result from an estimated 1 matches for "create_rcss_routes".
2006 Aug 09
0
recent changes in routes
...changes in routes effected this and what
the preferred way would be now to automatically include route?
Here''s the code that used to work:
class ActionController::Routing::RouteSet
alias_method :__draw, :draw
def draw
old_routes = @routes
@routes = []
begin
create_rcss_routes
yield self
rescue
@routes = old_routes
raise
end
write_generation
write_recognition
end
def create_rcss_routes
named_route ''plugin'', "/
controller/:plugin", :controller=>''controller'', :action=&...