Class: Portfolio::Admin::ApiController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Portfolio::Admin::ApiController
- Includes:
- SitesHelper
- Defined in:
- app/controllers/portfolio/admin/api_controller.rb
Instance Method Summary collapse
Methods included from SitesHelper
#items_to_show, #render_markdown, #unless_blank
Instance Method Details
#markdown_preview ⇒ Object
8 9 10 |
# File 'app/controllers/portfolio/admin/api_controller.rb', line 8 def markdown_preview render json: { html: render_markdown(params[:text]) } end |