Sha256: f2faaa5c462a7a7f9ff339a80db5d5742bad9f77764a38da4c39449b8ae8562c
Contents?: true
Size: 259 Bytes
Versions: 5
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 html: Anecdote.markdown_and_parse(file), layout: 'application' end end
Version data entries
5 entries across 5 versions & 1 rubygems