search for: not_eq

Displaying 3 results from an estimated 3 matches for "not_eq".

Did you mean: net_eq
2013 Feb 23
0
where condition having no association
..._controller, I would like to find a plan (counterpart) having many conditions. plans = Plan.arel_table @counterpart = Plan.where( .... ).where( plans[:user_id].not_eq(current_user.id) # eliminate current user ) in addition to this, I need one more condition. That is A Plan (counterpart) which has yet been found by any plans. It should look like counterpart.matches.length == 0 How can I add this condition to the wh...
2012 Sep 18
2
undefined method `to_sym' for nil:NilClass
Hi all, I am trying to upgrade my rails 2 app to 3 and am getting this error when trying to login: NoMethodError in AuthenticateController#authenticate undefined method `to_sym'' for nil:NilClass The stack trace is: activerecord (3.2.2) lib/active_record/validations/uniqueness.rb:26:in `validate_each'' activemodel (3.2.2) lib/active_model/validator.rb:153:in
2012 Feb 21
10
Search of multiple columns
I am currently writing a search method for my rails applications and at the moment it works fine. I have the following in my game.rb: def self.search(search) if search find(:all, :conditions => [''game_name LIKE ? OR genre LIKE ? OR console LIKE ?'', "%#{search}%", "#{search}", "#{search}"]) else find(:all) end end No that searches