title: Rails 3 respond_with json question
body: <p>Having trouble with generating some json. I am trying to render an
  single active record result to json like this:</p>
  
  <pre><code>@data = User.find(1)
  respond_with(@data, :include =&gt; :status)
  </code></pre>
  
  <p>The json result is:</p>
  
  <pre><code>{
    -user: {
      address: null
      email: "test@email.com"
      first_name: "Test"
      last_name: "Man"
      status_id: 1
      username: "testguy"
      status: { }
    }
  }
  </code></pre>
  
  <p>So whats the problem? The problem is that the :include=>:status seems
  to not bring over the relation. In my User model I have a
  belongs_to :status. How do i get this to work on a single result set?</p>
  
  <p>When I do this:</p>
  
  <pre><code>@data = User.where("id = 1")
  respond_with(@data, :include =&gt; :status)
  </code></pre>
  
  <p>The relation shows in the json result set fine this way. But its
  within an array of objects, which i do not want.</p>
  
  <p>Any ideas?</p>