I have a int field in my database and would like to check if it's not 0. Apparently the != in the condition is not working. I'm I doing something wrong? I tried different ways with no luck. Can anyone help?
these are the options I tried @allPost = Post.search params[:search], :conditions => ["account_status != 0"] @ allPost = Post.search params[:search], :conditions => ["account_status != ?", 0] @ allPost = Post.search params[:search], :conditions => ["account_status IS NOT ?", 0] @ allPost = Post.search params[:search], :conditions => ["account_status < ?", 1] thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

