title: Rails 3 widget helper partial
body: <p>I ran into a big problem in moving my application to Rails 3. I have a view helper which i call 'WidgetHelper'. It helps to render some partials automatically when i refer to it. For example</p>
  
  <pre><code>&lt;%= widget('loginbox', :global =&gt; true) %&gt;
  </code></pre>
  
  <p>But it not works correctly. It renders HTML code as I want, but escapes the return value, what is not expected. How can I tell to render (or to something) to <em>not</em> escape the return value for me?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>  def widget(widget, options={})
      begin
        unless options[:fullpath]
          render :partial =&gt; widget_path(widget, options[:global])
        else
          render "widgets/#{widget}"
        end
      rescue ActionView::MissingTemplate
        "&lt;!-- widget: #{widget.inspect}, #{options.inspect} --&gt;"
      end
    end
  </code></pre>