I give a general overview of my understanding of / experience with elasticsearch-rails, a ruby wrapper for indexing and searching data in elasticsearch.
Stubbing Out Block Arguments in RSpec
RSpec's #and_yield makes testing methods that takes a block argument super easy.
Tracking Currently Logged In Users with Devise
Devise needs a couple tweaks to track logged in users. Some of the solutions offered on the web are overkill. I'll demonstrate a simple solution here.