Sha256: ab4e4a2a159843e4d9a03ed6bd837347b3e56b771e19ad381acfaccdb4db7f0f
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
class PagesController < ApplicationController include PagesHelper protect_from_forgery before_filter :authenticate_admin_user!, except: :show def show path = params[:path] @page = Page.find_by_path(path) render action: template_path(path) end def update Page.update_content(params[:path], format_content(params[:content])) render text: '' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mercury_engine-0.0.1 | app/controllers/pages_controller.rb |