Class: Markitup::Rails::PreviewController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Markitup::Rails::PreviewController
- Defined in:
- app/controllers/markitup/rails/preview_controller.rb
Overview
Public: Provide server-side preview of editor markup
Instance Method Summary collapse
Instance Method Details
#preview ⇒ Object
8 9 10 |
# File 'app/controllers/markitup/rails/preview_controller.rb', line 8 def preview @content = Markitup::Rails.configuration.formatter.call(params[:data]) end |