title: Route ajax rails trouble
body: <p>I have such jquery code:</p>
  
  <pre><code>  $(".quantity").blur(function() {
      console.log("upd");
      $.ajax({
      url: "/line_items/update_quantity/",
      type: "GET",
      data: {id: $(this).attr('id'), quantity: $(this).attr('quantity'), cart: $(this).attr('cart')} 
      });
    });
  </code></pre>
  
  <p>But this code generate me such url:</p>
  
  <blockquote>
    <p>.../line_items/update_quantity/?id=29&amp;quantity=111&amp;cart=27</p>
  </blockquote>
  
  <p>But i need such url:</p>
  
  <blockquote>
    <p>.../line_items/update_quantity/id=28&amp;quantity=2&amp;cart=27</p>
  </blockquote>
  
  <p>without ?</p>
  
  <p>A have such routes:</p>
  
  <blockquote>
    <p>match 'line_items/:action/id=:id&amp;quantity=:quantity&amp;cart=:cart' =>
    'line_items#update_quantity'</p>
  </blockquote>
  
  <p>I tried, but nothing goes right. Help me please.</p>
  
  <pre><code>def update_quantity
      @cart = current_cart
      @line_item = LineItem.find(params[:id])
      respond_to do |format|
        if @line_item.update_attribute(:quantity, params[:quantity]) #&amp;&amp; @cart.id == params[:cart]
          format.html { redirect_to(@line_item, :notice =&gt; 'Line item was successfully updated.') }
          format.js
          format.xml  { head :ok }
        else
          format.html { render :action =&gt; "edit" }
          format.xml  { render :xml =&gt; @line_item.errors, :status =&gt; :unprocessable_entity }
        end
      end
    end
  </code></pre>