added basic manifesto

This commit is contained in:
Chris Zhu
2024-10-20 11:03:56 -07:00
parent 3551a040c2
commit 0619b63fbb
10 changed files with 62 additions and 13 deletions

View File

@@ -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