I'm using Thinking Sphinx for full-text search, following this video.
I'd like to do the following:
@articles = Article.search(params[:search], :conditions => "published_at IS NOT NULL", :order => :created_at)
The problem is that this doesn't work. It seems that the search method only accepts conditions that are a hash. I've tried a couple of ways, but I am clueless as to how I can represent "published_at IS NOT NULL" as a hash...
without => {:published_at => 0}
does not seem to work anymore – Aldous