Class: MarkdownRecord::ContentController

Inherits:
ApplicationController show all
Defined in:
app/controllers/markdown_record/content_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#render_not_found

Methods included from ControllerHelpers

#content_fragment, #download_html, #download_json, #render_html, #render_json

Instance Method Details

#downloadObject



12
13
14
15
16
17
# File 'app/controllers/markdown_record/content_controller.rb', line 12

def download
  respond_to do |format|
    format.html { download_html }
    format.json { download_json }
  end
end

#showObject



3
4
5
6
7
8
9
10
# File 'app/controllers/markdown_record/content_controller.rb', line 3

def show
  respond_to do |format|
    format.html do |html|
      render_html
    end
    format.json { render_json }
  end
end