mirror of
https://github.com/czhu12/canine.git
synced 2025-12-21 10:49:49 -06:00
added basic manifesto
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
class StaticController < ApplicationController
|
||||
MANIFESTO_FILE = Rails.root.join("public", "manifesto.md")
|
||||
skip_before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def manifesto
|
||||
@content = File.read(MANIFESTO_FILE)
|
||||
renderer = Redcarpet::Render::HTML.new
|
||||
@markdown = Redcarpet::Markdown.new(renderer, tables: true)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user