app/controllers/partystreusel/styleguide_controller.rb in partystreusel-1.2.0 vs app/controllers/partystreusel/styleguide_controller.rb in partystreusel-2.0.0
- old
+ new
@@ -1,6 +1,10 @@
module Partystreusel
+ class ApplicationController < ActionController::Base
+
+ end
class StyleguideController < ApplicationController
+ layout 'partystreusel'
def show
template = File.join(params[:controller].gsub('partystreusel/',''), params[:page])
render template
rescue ActionView::MissingTemplate => e
if e.message.include? "Missing template #{template}"