diff --git a/lib/rqrcode-rails3.rb b/lib/rqrcode-rails3.rb index b5768d1..6e1a67a 100644 --- a/lib/rqrcode-rails3.rb +++ b/lib/rqrcode-rails3.rb @@ -32,6 +32,6 @@ def render_qrcode(string, format, options) ActionController::Renderers.add :qrcode do |string, options| format = self.request.format.symbol data = RQRCode.render_qrcode(string, format, options) - self.response_body = render_to_string(:text => data, :template => nil) + self.response_body = render_to_string(:plain => data, :template => nil) end end