]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Remove all use of the :text option to render
[rails.git] / app / controllers / site_controller.rb
index 48b847cddb3b85b83a1f82fef7fa079611fc37b9..abd4696e0404606974eeeb4d3ba95119c69f7304 100644 (file)
@@ -115,7 +115,7 @@ class SiteController < ApplicationController
   def offline; end
 
   def preview
-    render :text => RichText.new(params[:format], params[:text]).to_html
+    render :html => RichText.new(params[:format], params[:text]).to_html
   end
 
   def id