Sha256: 934e5ba19b1958d84f27bbc0e05337a2cdba46a3a8a345559d76a03d9871f878
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
class Templates::TemplatesController < ApplicationController def index render :index, layout: 'templates/index' end def show if params[:id].present? && File.directory?("./app/views/templates/#{params[:id]}") render :nested_index, layout: 'templates/index' else render "templates/#{params[:id]}", layout: 'templates/show' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
templates-rails-0.1.0 | app/controllers/templates/templates_controller.rb |