RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: bcackerman
Site: bruceackerman.com
I hate to say it but all the other solutions limit your functionality with using prefixes. The proper way is to follow the documentation here: http://www.postgresql.org/docs/9.1/static/textsearch-controls.html
Replace all spaces with "&"
You can do this in your search method: query = query.split(" ").join(" & ")
+1
Not sure why but each day lists out the all the articles for me instead of just the ones for that day. Any suggestions?
day_method is correct too (I'm using :due_date and it has a datatype as date).
Any idea what's wrong?
I hate to say it but all the other solutions limit your functionality with using prefixes. The proper way is to follow the documentation here: http://www.postgresql.org/docs/9.1/static/textsearch-controls.html
Replace all spaces with "&"
You can do this in your search method:
query = query.split(" ").join(" & ")
+1
Not sure why but each day lists out the all the articles for me instead of just the ones for that day. Any suggestions?
day_method is correct too (I'm using :due_date and it has a datatype as date).
Any idea what's wrong?