title: Received ActiveRecord Relation, but need object
body: <p>i've written the following classes:</p>
  
  <pre><code>class Occupation &lt; ActiveRecord::Base
    has_many :pref_labels
    has_many :cv_occupations
    has_many :cvs, :through =&gt; :cv_occupations
    validates_uniqueness_of :uri
  
    # This function will return the specified label for the given language.
    def label(language = Language.find_or_create_by_code(:en))
      self.pref_labels.where("language_id = #{language.id}")
    end
  end
  
  class PrefLabel &lt; ActiveRecord::Base
    belongs_to :language
    belongs_to :concept
    belongs_to :skill
    belongs_to :occupation
    validates_uniqueness_of :value, :scope =&gt; [:language_id, :value]
    validates_uniqueness_of :language_id, :scope =&gt; [:language_id, :value]
  end
  </code></pre>
  
  <p>In my view, I call the following: <strong>%td= occupation.label(@language)</strong>
  but this returns as error :</p>
  
  <pre><code>undefined method `value' for #&lt;ActiveRecord::Relation:0x80c8368&gt;
  </code></pre>
  
  <p>How can I get the actuall object returned instead of the relation? I know this has something to do with the lazy loading....</p>