Using rails 3, How could one do multiple where statements without complicated stuff or extra gems?
Im having this column “accepted” and would like to get all the values where accepted == false and accepted == null
Both of examples below fail:
@scholars = Scholars.where(:scholar_id => current_user.id).where(["accepted = ? or accepted = ?", true, null])
and
@scholars = Scholars.where(:scholar_id => current_user.id).where(:accpeted => true).where(:accepted=> null)
The correct answer should be