title: Fetching second level model with rails active record
body: <p>I have  a  relationship in  which  a  post belongs to the  city which inturn belongs  to  a  state like:</p>
  
  <pre><code>class Post &lt; ActiveRecord::Base
    belongs_to :city
  end
  class City &lt; ActiveRecord::Base
    belongs_to :state
  end
  </code></pre>
  
  <p>Now i  want to find all the  posts  along  with the their cities  and  the  states to which the  belong  to. I wrote the  following query to fetch the posts with their cities but out of ideas on how to fetch the  corresponding state with the  city in the same finder:</p>
  
  <p>@post = Post.find :all, :include => [:city]</p>
  
  <p>Any help is  appreciated.</p>
  
  <p>Thanks.</p>