Ask for Help
Ian is looking for people will experience using the “Koloa Gem”.
JT recommended to use the standard facebook widgets instead.
In SQL, how do you make a query the opposite of:
where(:name => nil) without using a magic SQL string.
Interesting Things
In SQL null is neither true or false. Be careful for searching for something when a column can have 3 states: true, false and nil. Because falsey comparisons will not work as expected. (RVA, NM)
Events
Yoga
where(‘name IS NOT NULL’)
requires you to break into stringy-SQL instead of using pure Ruby Hashes.
—
I think you mean the Koala gem. Which is great, btw.
August 2, 2011 at 1:14 pm
Or use not-so-readable ruby:
where(User.arel_table[:name].not_eq(nil))
August 2, 2011 at 10:22 pm
We’re using Koala for all Facebook interactions at NeedFeed. Works great. Feel free to email me with questions.
August 2, 2011 at 10:41 pm