RailsCasts Pro episodes are now free!

Learn more or hide this

Rails Initialization Walkthrough
Episode #299Nov 14, 201130 comments

Rails Initialization Walkthrough

In this episode I walk you through the internals of the Rails initialization process and show exactly what happens behind the scenes when starting up the Rails application. (13 minutes)
Getting Started with Spree
Episode #298Nov 14, 201151 comments

Getting Started with Spree

Spree allows you to quickly turn a Rails project into a full eCommerce application. Here I show how to set it up and configure the look and feel of the store. (10 minutes)
Auto-Complete Association (revised)
Episode #102Nov 10, 201176 comments

Auto-Complete Association (revised)

A select menu is often used for setting a belongs_to association, but you should also consider using a text field with autocomple. Here I use jQuery UI and show two different solutions: client side and server side. (9 minutes)
Running JavaScript in Ruby
Episode #297Nov 07, 201147 comments

Running JavaScript in Ruby

Sometimes logic needs to be shared between the server-side (Ruby) and the client-side (JavaScript). Here I show how to run JavaScript directly in Ruby through ExecJS and therubyracer. (14 minutes)
Mercury Editor
Episode #296Nov 07, 2011101 comments

Mercury Editor

Mercury allows you to edit a section of HTML directly in the web browser through a WYSIWYG editor. Here I show how to integrate Mercury into a Rails app and save the changes back to the database. (11 minutes)
PDFs with Prawn (revised)
Episode #153Nov 03, 201182 comments

PDFs with Prawn (revised)

Prawn is an excellent Ruby library for generating PDF documents. Here you will learn how to add it to a Rails application through a separate PDF renderer class. (11 minutes)
Sharing Mustache Templates
Episode #295Oct 31, 201155 comments

Sharing Mustache Templates

Mustache is a simple, logic-less templating language which allows you to use the same template for both Ruby and JavaScript. See how to set it up with a custom template handler in this episode. (17 minutes)
Playing with PJAX
Episode #294Oct 31, 201182 comments

Playing with PJAX

PJAX allows you to quickly update a section of a page using AJAX with automatic pushState support. Here I show how to use both pjax_rails and rack-pjax gems. (8 minutes)
Factories not Fixtures (revised)
Episode #158Oct 27, 201144 comments

Factories not Fixtures (revised)

Fixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show how to use Factory Girl to generate the needed records directly in the tests. (9 minutes)
Nginx & Unicorn
Episode #293Oct 24, 201173 comments

Nginx & Unicorn

Nginx and Unicorn make a killer-combo for hosting a Rails application in production. Learn how to configure each in a Vagrant virtual machine in this episode. (19 minutes)