RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rails x
Validations in Rails 3
Episode #211 – Apr 26, 2010 – 59 comments

Validations in Rails 3

Rails 3 offers several new additions to validations. Here learn how to make a custom error_messages partial, reflect on validations, and clean up complex validations in a model. (9 minutes)
Action Controller Walkthrough
Episode #395 – Dec 02, 2012 – 77 comments

Action Controller Walkthrough

Do you ever wonder what goes on behind the scenes when a Rails controller handles a request? What do the "render" and "redirect_to" methods do exactly? This and more covered as we walk through the code of ActionController::Base. (11 minutes)
Generators in Rails 3
Episode #216 – May 31, 2010 – 40 comments

Generators in Rails 3

Generators in Rails 3 have been completely rewritten to be more modular. This allows you to customize any generator to fit your specific preferences. (11 minutes)
ERB Blocks in Rails 3
Episode #208 – Apr 05, 2010 – 60 comments

ERB Blocks in Rails 3

Blocks in ERB templates are handled differently in Rails 3.0 Beta 2. Learn all about it in this episode. (9 minutes)
Migrating to PostgreSQL
Episode #342 – Apr 17, 2012 – 137 comments

Migrating to PostgreSQL

Postgres is a feature-packed relational database that every Rails developer should consider using. Here you will learn how to install it, add it to a new application, and transition from an existing SQLite app using the "taps" gem. (8 minutes)
Eager Loading (revised)
Episode #22 – Mar 20, 2013 – 223 comments

Eager Loading (revised)

One way to improve performance is to reduce the number of database queries through eager loading. Here I demonstrate this and compare the difference between the "includes" and "joins" methods. (7 minutes)
Action View Walkthrough
Episode #397 – Dec 09, 2012 – 75 comments

Action View Walkthrough

Find out exactly what Rails is doing under the hood when it renders a view template for a response. What object context handles the template? How does the lookup process work? That and more covered in this code walkthrough. (15 minutes)
A Look at Meteor
Episode #351 – May 16, 2012 – 105 comments

A Look at Meteor

Meteor is a JavaScript framework for building rich client-side applications. Here I re-create the Raffler app to compare with Backbone.js and Rails. Meteor may not be related to Rails, but I think many will find it interesting. (15 minutes)
Better Errors & RailsPanel
Episode #402 – Jan 25, 2013 – 131 comments

Better Errors & RailsPanel

Here we take a look at two tools to aid us in development: Better Errors which makes it easier than ever to debug exceptions, and RailsPanel, a Chrome extension to see Rails requests. (8 minutes)
Performance Testing
Episode #411 – Mar 27, 2013 – 219 comments

Performance Testing

Learn how to add performance tests that automate benchmark and profile reports. Here I show how to find the bottlenecks to optimize a page. I also show how to compile Ruby with gcdata to get information about memory usage. (16 minutes)