Sha256: 070785e44ca46420247778c7284a8ff40af700ee6b8ac876147a2c9e06413212
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
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}" raise ActionController::RoutingError, 'Not Found' else raise e end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
partystreusel-2.0.0 | app/controllers/partystreusel/styleguide_controller.rb |