Displaying 1 result from an estimated 1 matches for "status_name_does_not_equal_all".
2010 Apr 07
3
Recommendation for searching with regards to timestamp & foreign key attributes
...24.hours) .. (Time.now) } )
Tested and that works just fine.
Suppose I would like to get all blog entries which are not of the
status of ''published'' or ''archived''.
I would just make use of searchlogic in the following way:
new_blog_entries = Blog.searchlogic(:status_name_does_not_equal_all
=> ([''published'', ''archived'']) )
OR
new_blog_entries = Blog.status_name_does_not_equal_any([''published'',
''archived''])
Question:
========
Suppose I now want to get blog entries which
1) have been created within the last 2...