RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: model xPro Episodes x
STI and Polymorphic Associations
Episode #394Nov 25, 201281 comments

STI and Polymorphic Associations

Single Table Inheritance (STI) can help organize branching logic into separate classes, but a polymorphic association may be a better fit if there are unique database columns. (14 minutes)
Authorization from Scratch Part 2
Episode #386Oct 11, 201297 comments

Authorization from Scratch Part 2

This finishes the series on building authorization from scratch by refactoring the permission logic into a DSL, restricting authorization with attributes, and combining with strong_parameters to protect params. (20 minutes)
Backbone on Rails Part 2
Episode #325Feb 13, 2012104 comments

Backbone on Rails Part 2

In the second part of this two part series on Backbone.js, we finish up the Raffler application. Included is how to create entries through a form, respond to events, extract sub-views, pre-populate records, visit routes, and more. (24 minutes)
Twitter Integration
Episode #359Jun 15, 201276 comments

Twitter Integration

Here I show how to integrate Twitter into a Rails app. This includes fetching data, caching it, and even how to authenticate as a user signing in to your application through Twitter. (14 minutes)
ElasticSearch Part 2
Episode #307Dec 12, 201161 comments

ElasticSearch Part 2

This final part on ElasticSearch and Tire will show how to make more complex search queries, customize the indexing, and add facets. (16 minutes)
Rollout and Degrade
Episode #315Jan 09, 201247 comments

Rollout and Degrade

Learn how to use the Rollout gem to deploy a feature to a select group of users and the Degrade gem to automatically disable it upon failure. Also included is a way of doing this from scratch. (13 minutes)
Extracting a Ruby Gem
Episode #301Nov 21, 201140 comments

Extracting a Ruby Gem

In this episode I show how to extract a Ruby Gem from an existing Rails application, test it with RSpec and Supermodel, and add a Railtie. (16 minutes)