Sha256: 74033bf26d6ae5d78e95dcd5c8feba3bd82687cc535a163e04121ec3b8aaddb5
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
module Partystreusel class StyleguideController < ApplicationController 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-1.2.0 | app/controllers/partystreusel/styleguide_controller.rb |