title: Stopping Post to external service looking for User ID
body: <p>I'm not really sure how to describe this issue so will try to be clear.</p>
  
  <p>We have a page in our Rails application where our customers can update their credit card details. The form posts to an external service to verify the details. Then redirects back to us transparently.</p>
  
  <p>Initially I had the form in it's own controller for testing (working perfectly) but I've just moved it within my users_controller.</p>
  
  <p>The form posts and redirects to a confirm action which does some checks. When I post from within the users controller, I get an error:</p>
  
  <pre><code> Couldn't find User with id=k2hx5p36w3g9rxsz
  </code></pre>
  
  <p>Which in fact is the id of the transaction. Not the user.</p>
  
  <p>The url looks like this:</p>
  
  <pre><code> http://localhost:8080/settings/confirm?http_status=200&amp;id=k2hx5p36w3g9rxsz&amp;kind=update_payment_method&amp;hash=9c85b12c1242cd58de27b2582c934e34a0e9455e6
  </code></pre>
  
  <p>In my controller, I have this:</p>
  
  <pre><code>def billing
    @user = current_user 
    @credit_card = current_user.default_credit_card  
    @tr_data = CreditCard::TransparentRedirect.update_credit_card_data(:redirect_url =&gt; confirm_credit_card_info_url, :payment_method_token =&gt; @credit_card.token)
    ...
  end
  
  def credit_card_confirm
    @user = current_user 
    @result = CreditCard::TransparentRedirect.confirm(request.query_string)
  
    if @result.success?
      redirect_to user_billing_path, :notice =&gt; "Credit card updated"
    else
      render :action =&gt; "billing"
    end
  end
  </code></pre>
  
  <p>And in my routes:</p>
  
  <pre><code>match '/settings/confirm' =&gt; 'users#credit_card_confirm', :as =&gt; :confirm_credit_card_info
  </code></pre>
  
  <p>What can I do to avoid it taking the ID as the User ID?</p>