Class: Markitup::ParsersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Markitup::ParsersController
- Defined in:
- app/controllers/markitup/parsers_controller.rb
Instance Method Summary collapse
Instance Method Details
#default ⇒ Object
8 9 10 11 |
# File 'app/controllers/markitup/parsers_controller.rb', line 8 def default @content = params[:data].html_safe render :layout => false end |
#markdown ⇒ Object
3 4 5 6 |
# File 'app/controllers/markitup/parsers_controller.rb', line 3 def markdown @markitup = BlueCloth.new(params[:data]).to_html render :layout => false end |