RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rails xControllers x
The Rails API Gem
Episode #348 – May 09, 2012 – 74 comments

The Rails API Gem

It is often asked: Is Rails a good fit if I only need to serve an API? In this episode I show how to use the Rails API gem to create a slimmer Rails application designed to respond with JSON. (9 minutes)
Handling Exceptions (revised)
Episode #53 – Apr 20, 2013 – 209 comments

Handling Exceptions (revised)

By default, Rails will render a static error file when an exception occurs in production. Here you will learn how to fully customize this behavior and render dynamic error pages. (11 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)
Destroy without JavaScript (revised)
Episode #77 – Jun 16, 2012 – 48 comments

Destroy without JavaScript (revised)

A destroy link in Rails does not work without JavaScript. In this episode I show two techniques for gracefully degrading destroy links: button_to and a delete action. (8 minutes)
Service Objects
Episode #398 – Dec 18, 2012 – 114 comments

Service Objects

Models can quickly become a grab-bag of unrelated methods if behavior is constantly being pushed from the controller. Here I show how to refactor this using Concerns and Service Objects. (12 minutes)
Controllers in Rails 3
Episode #224 – Jul 26, 2010 – 48 comments

Controllers in Rails 3

Embedded flash notices, permanent cookies, and the details of respond_with are in this episode. (10 minutes)
Mobile Devices
Episode #199 – Feb 01, 2010 – 89 comments

Mobile Devices

Change the look and behavior of a Rails app on mobile devices. Also use jQTouch to build a native-looking interface. (13 minutes)
jQuery
Episode #136 – Nov 17, 2008 – 114 comments

jQuery

How do you use jQuery with Rails? In this episode I redo episode #43 using jQuery instead of Prototype/RJS. (9 minutes)
Subdomains
Episode #123 – Aug 18, 2008 – 82 comments

Subdomains

Learn how to unleash the full potential of subdomains with the subdomain-fu Rails plugin in this episode. (18 minutes)
Semi-Static Pages
Episode #117 – Jul 07, 2008 – 73 comments

Semi-Static Pages

Static pages can sometimes be a little awkward to add to a Rails app. See a couple different solutions to this problem in this episode. (14 minutes)