mirror of
https://github.com/System-End/highway.git
synced 2026-04-19 16:28:24 +00:00
11 lines
No EOL
363 B
Ruby
11 lines
No EOL
363 B
Ruby
class InfoController < ApplicationController
|
|
def show
|
|
markdown_file_path = Rails.root.join("app", "views", "info", "info.md")
|
|
if File.exist?(markdown_file_path)
|
|
markdown_content = File.read(markdown_file_path)
|
|
@content = helpers.markdown_to_html(markdown_content)
|
|
else
|
|
@content = "<p>Markdown file not found.</p>"
|
|
end
|
|
end
|
|
end |