title: responding with multiple JSON renders. (Ruby/Rails)
body: <p>This is a relatively simple one and I'm pretty sure its just syntax.</p>
  
  <p>Im trying to render multiple objects as json as a response in a controller. So something like this:</p>
  
  <pre><code>  def info
      @allWebsites = Website.all
      @allPages = Page.all
      @allElementTypes = ElementType.all
      @allElementData = ElementData.all
  
  
      respond_to do |format|
        format.json{render :json =&gt; @allWebsites}
        format.json{render :json =&gt;@allPages}  
        format.json{render :json =&gt;@allElementTypes}  
        format.json{render :json =&gt;@allElementData}
        end
      end
    end 
  </code></pre>
  
  <p>Problem is I'm only getting a single json back and its always the top one. Is there any way to render multiple objects this way?</p>
  
  <p>Or should I create a new object made up of other objects.to_json?</p>