title: How to get (matching) data across multiple tables in a controller?
body: <p><strong>Question:</strong> How can I get data which is associated with each other in my controller from separate controllers and models?</p>
  
  <p><strong>Issue:</strong> I need my @order.seller_id's (which matches a @user.id) and then i need the @user.stripe_token.</p>
  
  <p>So i ultimately need the @user.stripe_token from the correct user_id, which is matched up through the @order.seller_id</p>
  
  <p>The order has a seller_id which is a users id.  This id is the same across all tables that have a user attached to it.  So in order to transfer the money, I need the correct @user the seller_id is associated to</p>
  
  <p>Here's the piece of code i need this for from my orderscontroller:
  <em>(when a order gets updated, the charge gets captured and seller receives commission)  It may not be set up 100% correctly atm but this is the currently where i'm at.</em></p>
  
  <pre><code>charge = Stripe::Charge.create({
      :amount      =&gt; (@order.order_price).to_i * 100,
      :description =&gt; 'Rails Stripe customer',
      :currency    =&gt; 'usd',
      :customer =&gt; @order.stripe_customer_token,
  
      })
  
  transfer = Stripe::Transfer.create({
      application_fee_percent: 75
      :currency    =&gt; 'usd',
      destination: ---here's where i need the correct @user.stripe_token ---,
      transfer_group: "notes_328324"
      })
  </code></pre>