Joined September 2013
·
Posted to
OR queries with arrays as arguments in Rails 4
over 1 year
ago
@random-private: You're right, it's an ActiveRecord relation.
Posted to
OR queries with arrays as arguments in Rails 4
over 1 year
ago
No problem. If you're new to Rails and you won't write queries like that too often, I'd recommend the first method or the one I described in the post, so you won't trouble yourself with libraries that do a bit of magic you don't yet grok ;)
Posted to
OR queries with arrays as arguments in Rails 4
over 1 year
ago
@limeblast I think you have to install the mentioned arel-helpers
gem to make it work.
Posted to
git rebase --autosquash
over 1 year
ago
@bsimpson: I think you should add that note somewhere in the article, not many people are going to see that in the comments ;)
Achievements
316 Karma
34,180 Total ProTip Views
Altruist
Increase developer well-being by sharing at least 20 open source projects
Honey Badger
Have at least one original Node.js-specific repo
Kona
Have at least one original repo where CoffeeScript is the dominant language
Komodo Dragon
Have at least one original repo where Java is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
FYI: In Ruby 2.0+ there's Enumerable#lazy. http://patshaughnessy.net/2013/4/3/ruby-2-0-works-hard-so-you-can-be-lazy
(Yes, I do realize this post talks about 1.9 😉)