#-- # Copyright (C) 2006 Dimitrij Denissenko # Please read LICENSE document for more information. #++ ActionController::Routing::Routes.rxt_draw do |map| # Connect for single and multiple project installations def multiconnect(obj, path = '', options = {}) obj.connect PROJECT_ROUTE + path, options obj.connect path, options end map.with_options :controller => 'blog' do |omap| multiconnect omap, 'blog/', :action => 'index' multiconnect omap, 'blog/own/', :action => 'index', :mode => 'own' multiconnect omap, 'blog/:id', :action => 'show', :requirements => {:id => /\d+/} end end