title: Multiple conditions in Rails console
body: <p>Hello I'm finding it hard to make this work.</p>
  
  <p>I'm having an error which is syntax error.</p>
  
  <p>I want to use where clause to find users who are created_at during a specified date and at the same time those users who don't have profile pic</p>
  
  <p>I have here</p>
  
  <pre><code>User.where(:conditions =&gt; {"date(created_at) = ? AND profilepic = ?", '2012-08-10', 'nil'})
  </code></pre>
  
  <p>What's the problem. And what are the other ways.</p>