Class: MarkdownRecord::ContentController
Instance Method Summary
collapse
#render_not_found
#content_fragment, #download_html, #download_json, #render_html, #render_json
Instance Method Details
#download ⇒ Object
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
|
#show ⇒ Object
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
|