title: Scope but error message ArgumentError: tried to create Proc object without a block
body: <p>I am tring to create a scope which find out all contacts with 0 address. <code>Got error message ArgumentError: tried to create Proc object without a block</code> when running command 'Contact.noaddress' in rails c.</p>
  <p>Here is my contact model including scope:</p>
  <pre><code>class Contact &lt; ActiveRecord::Base
    attr_accessible :email, :firstname, :lastname, :mobilephone, :fullname
    has_many :addresses
    validates_presence_of :firstname, :lastname
  
  
     scope :noaddressed, lambda do |addresses|
      joins(:addresses).where('addresses.created_at.empty?', true)
     end
  end
  </code></pre>
  <p>and here's address model</p>
  <pre><code>class Address &lt; ActiveRecord::Base
    attr_accessible :city, :country, :postalcode, :region, :street
    belongs_to :contact
  end
  </code></pre>
  <p>Could somebody help me please?</p>