title: undefined method `write_reviews' for #<User::ActiveRecord_Relation:0xaadd320>
body: <p>Hi i am having two tables named users and write_reviews ,i have created active association between them as user has_many write_reviews while write_reviews belongs_to user 
  in my method i am trying to do like this </p>
  
  <pre><code>def details
      @user = User.all
      @writereview  = @user.write_reviews.all
      respond_to do |format|
      format.html
      format.json { render json: @writereview }
    end
  </code></pre>
  
  <p>in my write_review model it is defined like </p>
  
  <pre><code>class WriteReview &lt; ActiveRecord::Base
      belongs_to :user
  end
  </code></pre>
  
  <p>but it is giving error </p>