Sha256: fb97fa753d42dfe68cab10a7b6756b7b0ed6270ba41dc3eb117e4e125b93289d

Contents?: true

Size: 560 Bytes

Versions: 17

Compression:

Stored size: 560 Bytes

Contents

module Cms
class RoutesController < Cms::BaseController
  
  
  def index
  
    @toolbar_tab = :administration
    
    unless params[:path].blank?
      @path = params[:path]
      @route = Rails.application.routes.recognize_path(@path)
    end
    
    @routes = Rails.application.routes.routes.collect do |route|
      name = route.name.to_s
      verb = route.verb
      segs = route.path
      reqs = route.requirements.empty? ? "" : route.requirements.inspect
      {:name => name, :verb => verb, :segs => segs, :reqs => reqs}
    end
    
  end
end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/controllers/cms/routes_controller.rb
browsercms-3.5.6 app/controllers/cms/routes_controller.rb
browsercms-3.5.5 app/controllers/cms/routes_controller.rb
browsercms-3.5.4 app/controllers/cms/routes_controller.rb
browsercms-3.5.3 app/controllers/cms/routes_controller.rb
browsercms-3.5.2 app/controllers/cms/routes_controller.rb
browsercms-3.5.1 app/controllers/cms/routes_controller.rb
browsercms-3.5.0 app/controllers/cms/routes_controller.rb
browsercms-3.5.0.rc3 app/controllers/cms/routes_controller.rb
browsercms-3.5.0.rc2 app/controllers/cms/routes_controller.rb
browsercms-3.5.0.rc1 app/controllers/cms/routes_controller.rb
browsercms-3.4.2 app/controllers/cms/routes_controller.rb
browsercms-3.4.2.rc1 app/controllers/cms/routes_controller.rb
browsercms-3.4.1 app/controllers/cms/routes_controller.rb
browsercms-3.4.0 app/controllers/cms/routes_controller.rb
browsercms-3.4.0.rc2 app/controllers/cms/routes_controller.rb
browsercms-3.4.0.rc1 app/controllers/cms/routes_controller.rb