]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Replace deprecated ActiveModel::Errors get/set methods
[rails.git] / app / controllers / site_controller.rb
index abd4696e0404606974eeeb4d3ba95119c69f7304..6e26e798fa0061420860aef190e73dd46c3bb31e 100644 (file)
@@ -115,7 +115,7 @@ class SiteController < ApplicationController
   def offline; end
 
   def preview
-    render :html => RichText.new(params[:format], params[:text]).to_html
+    render :html => RichText.new(params[:type], params[:text]).to_html
   end
 
   def id