Module: Workarea::StyleGuides
- Defined in:
- app/controllers/workarea/style_guides.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 |
# File 'app/controllers/workarea/style_guides.rb', line 3 def index end |
#show ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/workarea/style_guides.rb', line 6 def show module_path = self.class.parent.name.underscore category = "#{module_path}/style_guides/#{params[:category]}" if lookup_context.exists?(params[:id], [category], true) @style_guide_partial = "#{category}/#{params[:id]}" else raise ActionController::RoutingError.new('Not Found') end end |