]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Switch to the HTML5 DOCTYPE
[rails.git] / app / controllers / site_controller.rb
index cf4465b9c5b185bcdd3b760073083b51c1b842aa..fa33deeeeead9b95cca0368de32886529bf557ff 100644 (file)
@@ -85,4 +85,8 @@ class SiteController < ApplicationController
   def copyright
     @locale = params[:copyright_locale] || I18n.locale
   end
+
+  def preview
+    render :text => RichText.new(params[:format], params[:text]).to_html
+  end
 end