The latest news in the Ruby and Rails community.

Subscribe to our mailing list!

Episode #287

July 10th, 2012

The State of the Ruby stack, neater Dotfiles, ActiveRelation merge, ways to learn RubyMotion, custom flash types, and Asynchronicity.


ActiveRelation merge, a hidden merge

Scopes are a neat feature of Rails 3, but what happens when you need to use a scope from an associated model to filter something on the current model. Imagine you have a User that has many articles through a Collaboration model. Now you have an article and you want to get the users that were editors on that article with a single query. The collaboration already has an editorial scope so why not use that? With Arel merge you can do exactly that, effectively using another model’s scope to filter a query.

Visit site → Permalink

Previous Episodes

Episode #286

In today's episode, Ruby 1.8.7 gets a final bit of love, a text editor poll, stubbing your constants, performing sorcery on your images, the Twitter gem goes 3.0 and Protocolist.

Episode #285

We scope out our scopes with Periscope, Ruby Open Source Challenge calls on contributors to improve Active Admin, we clean up our seeds mess with Seedbank & Seed Fu, learn some Factory Girl tricks, and let everyone participate in our I18n efforts.

Episode #284

Learn about oauth, the Greener Ruby Test Challenge, an open source IRC gateway, better file attachments, R18n, and the new asynchronous ActionMailer.

Episode #283

Better late than never, June 22nd's episode is live, featuring stories about gems, blog entries, and even the occasional Javascript cat-face-recognition tool.

View the archives →

Looking to learn about Ruby? Take a look at the Ruby Path on Code School

This podcast is produced and distributed by Code School. Copyright © 2015 Code School LLC