Hi,

I have tried creating a not equal condition in the find statment but
it just outputs an empty array.

model.find(:first, :conditions => [" id = ? AND market = ? AND
promotion <> ? " , id , name, "y"],:order => 'id desc').price

I have tried != instead of <>

I have tried googling for the answer but i can't seem to find it. What
do i need to put to give a not equal condition?

Database is mysql.


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to