4:53 Play Subscribe with or Intro song by Falseta

Episode #377 - June 11th, 2013

9c5541e591a62dd93a2fd2d45b5732dd.jpg?s=18&r=pg&d=http%3a%2f%2fwww.gravatar.com%2favatar%2f8ebf4339f7c8cd73b53d1d1d3eba7c35 Olivier Lacan 30d011dd1b103a523f5bc75cf4b31833.jpg?s=18&r=pg&d=http%3a%2f%2fwww.gravatar.com%2favatar%2f8ebf4339f7c8cd73b53d1d1d3eba7c35 Aimee Simone

RubyGems paranoia, unexpected chained scopes in Rails 4, Rubberband flamethrowers, Stripe with Rails, and efficient Git pairing.

Subscribe to our mailing list!

This episode is sponsored by Top Ruby Jobs. Everyone deserves to love their job (and it's probably in Ruby).

  • TopRubyJobs
  • RubyGems Paranoia
  • Scopes in Rails 4
  • Rubberband Flamethrower
  • Stripe with Rails
  • Git Pairing
  • Ruby5

Chaining Scopes in Rails 4 Jump to Story

On the Envy Labs blog, Carlos Souza talks about the surprising new behavior of ActiveRecord scopes in Rails 4. It’s possible to chain scopes in Rails, which means the scopes will be combined to create a specific query that satisfies all the conditions. To keep it simple, in the situation where you might have 2 scopes involving the same column, Rails used to play dumb and ignore the first condition altogether. In Rails 4, this behavior changes and the two conditions are combined with an “AND” SQL statement.

October 21st, 2014

Aimee and Nate talk about UltraHook, Using Capybara in Integration Tests, Background Processing with Einhorn, Barcelona Ruby Conf Top 5, and Raptor.

October 16th, 2014

Unary Operators, Writing fast Ruby, each_with_object, ES6 Transpiler and HStore

October 14th, 2014

RailsRumble, Ruby Motion for Rails devs, how Ruby Hashes work, how to deal with data migrations, clean up your routes file, and get better logs.

October 7th, 2014

Rails data migrations, tools for optimization, Bundler::Updater, using UUID with Postgres, 20,000 Leagues Under Active Record, and Ruby 2.2.0