title: rails 3 jquery button_to remote json not decoding
body: <p>I'm using jQuery in a rails 3.1 project. I use a button_to with :remote => true :</p>
  
  <pre><code>&lt;%= button_to "View Examples", "#{requisition_assign_path(@req.id, category_row.id)}?show_examples=1", :remote =&gt; true, :method =&gt; 'get' %&gt;
  </code></pre>
  
  <p>This gets to the server fine, and is handled here :</p>
  
  <pre><code>   def show
      @assignment = Assignment.find params[:id]
      @tag = @assignment.assignee
      examples = []
      @tag.example[@tag.tag].each do |e|
        examples &lt;&lt; {:id =&gt; e.id}
      end
      @examples_json = examples.to_json
      respond_to do |format|
        format.js {render "assign/show.js.erb"}
      end
    end
  </code></pre>
  
  <p>Which calls show.js.erb just fine :</p>
  
  <pre><code>alert(jQuery.parseJSON("&lt;%= @examples_json %&gt;");
  </code></pre>
  
  <p>But in the browser, the text arrives, but I can't get it to parse to the original array of hashes. What am I missing?</p>
  
  <p>---- what I may have been missing is simply using jQuery's getJSON function...</p>