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