Displaying 1 result from an estimated 1 matches for "old_rout".
Did you mean:
old_root
2006 Aug 09
0
recent changes in routes
...no longer seems to work in
edge rails. Anyone know what 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/:plu...