Hello I’m finding it hard to make this work.
I’m having an error which is syntax error.
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
I have here
User.where(:conditions => {"date(created_at) = ? AND profilepic = ?", '2012-08-10', 'nil'})
What’s the problem. And what are the other ways.
It should be