Sha256: ddcd5e9b857aa646b479dd87c40857c8f52a3fb7eb1c554cd5fe7c6dd4979e45
Contents?: true
Size: 436 Bytes
Versions: 11
Compression:
Stored size: 436 Bytes
Contents
require_dependency "social_networking/application_controller" module SocialNetworking # Sends back static templates. class TemplatesController < ApplicationController # Renders either the engine template if it exists or the host template. def page @path = params[:path].gsub(/[^_a-z\/]+/m, "") template = "social_networking/templates/#{ @path }.html" render file: template, layout: nil end end end
Version data entries
11 entries across 11 versions & 1 rubygems