Sha256: 4ef53d8f7b88478617f1953de57a117366133dfe3d57da0e2cbeac5f85c3d52b
Contents?: true
Size: 259 Bytes
Versions: 38
Compression:
Stored size: 259 Bytes
Contents
class PagesController < ApplicationController def show page = params[:id] || 'article' file = File.read Rails.root.join('app', 'views', 'pages', "#{page}.markdown") render text: Anecdote.markdown_and_parse(file), layout: 'application' end end
Version data entries
38 entries across 38 versions & 1 rubygems