Class: HighVoltage::RouteDrawers::Default
- Inherits:
-
Object
- Object
- HighVoltage::RouteDrawers::Default
- Defined in:
- lib/high_voltage/route_drawers/default.rb
Overview
Matches routes in the HighVoltage.content_path directory. By default this looks for /pages/id. e.g. www.example.com/pages/about_us
Class Method Summary collapse
Class Method Details
.match_attributes ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/high_voltage/route_drawers/default.rb', line 6 def self.match_attributes { "/#{HighVoltage.content_path}*id" => 'high_voltage/pages#show', :as => :page, :format => false } end |