Class: SimpleFormMarkdownEditor::PreviewsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/simple_form_markdown_editor/previews_controller.rb

Instance Method Summary collapse

Instance Method Details

#previewObject



7
8
9
10
11
# File 'app/controllers/simple_form_markdown_editor/previews_controller.rb', line 7

def preview
  respond_to do |format|
    format.html { render plain: text_preview }
  end
end