title: handle post request with redux and rails api
body: <p>i'm trying to post some data with fetch medthod in my api</p>
  <pre><code>export const CREATE_MATCH = 'CREATE_MATCH'
  
  export function createMatch(user) {
    const request = fetch(&quot;/api/matches&quot;, {
  
      // Adding method type
      method: &quot;POST&quot;,
  
  
      // Adding headers to the request
      headers: {
          &quot;Content-type&quot;: &quot;application/json&quot;,
          &quot;X-User-Token&quot;: user.authentication_token,
          &quot;X-User-Email&quot;: user.email
      }
    })
  
    return {
      type: CREATE_MATCH,
      payload: request
    }
  }
  </code></pre>
  <p>but the i only get the response and not the data created</p>
  <pre><code>Response {type: &quot;basic&quot;, url: &quot;http://localhost:3000/api/matches&quot;, redirected: false, status: 200, ok: true, …}
  </code></pre>
  <p>i dont know how to get the data created.</p>
  <p>in rails this is what i have, i dont have any data in a Match, only id and timestamps</p>
  <pre><code>def create
    @match = Match.new
    authorize @match
    if @match.save
      render json: @match
    else
      render_error
    end
  end
  </code></pre>