title: Rails: rendering json with multiple objects
body: <p>I am trying to return multiple objects with the call: </p>
  
  <pre><code>def index
      beers = Beer.all
      micros = Micros.all
      render json: {beers: beers, micro: micros}  
  end
  </code></pre>
  
  <p>However, for both objects is only returning the <em>attributes</em> listed in the respected serializers, not any of the <em>has_many, belongs_to, etc.</em> relationships in the respected serializers.</p>
  
  <p>If I am just trying to return one single object, such as:</p>
  
  <pre><code>def index
      beers = Beer.all
      render json: beers 
  end
  </code></pre>
  
  <p>Then it works fine and returns all the relationships listed in the serializer. </p>
  
  <p>How do I fix the call with multiple objects to return everything in the serializer, not just the attributes? </p>