I have a table called Review and i want to retrieve all review objects that don’t have :stage equal to "approve".
so something like this: Review.where(:stage not_equal_to "approve")
How can i actually do this? and where can i find the list of calls i can make inside the .where such as less than, greater than etc.
Using pure string condition queries, which are documented in the Rails Guides at http://guides.rubyonrails.org/active_record_querying.html#pure-string-conditions.
This can be vulnerable to SQL queries if you go using user values in the string condition, so use the array syntax as above, which replaces the question marks with each passed argument after sanitization.