plugin comes in. This makes it easier to use the name of a model in a URL without having to prefix it with an id . The gem has a number of features but before we look into them we’ll see what’s involved in adding it to our application. As ever, the first thing we’ll need to do is add ...

May 14, 2007 | 5 minutes | Active Support , Views Learn how to use the trusty strftime method to format a time, and see how Rails allows you to save this format for later use. Click to Play Video ▶ Tweet Download: mp4 Full Size H.264 Video (8.96 MB) m4v Smaller H.264 Video (5.69 MB) w...

Updated RailsCasts Status I had originally planned to return to RailsCasts on September 2, however I do not feel ready yet. I don't want to return until I am fully ready to avoid getting burnt out. It is hard to predict exactly when that will be, but in the meantime I have extended al...

Related:

ZURB's Foundation is a front-end for quickly building applications and prototypes. It is similar to Twitter Bootstrap but uses Sass instead of LESS. Here you will learn the basics of the grid system, navigation, tooltips and more.

Does anyone know how you would make the questions answerable (perhaps assuming that you were using Devise for user authentication and had access to current_user)? I'm guessing that you would have a model that stored the ID from a User model as well as an ID from the Answer model. So t...

Related:

RailsCasts Status You have probably noticed there has been a lack of new episodes lately. I have found it increasingly difficult to produce content, and I'm not entirely sure why. The best way I can describe it is that I feel paralized under the pressures of work. I have decided to ta...

The application’s CSS file now requires a foundation_and_overrides file that was created by the generator. This loads in the Foundation framework and allows us to customize it by setting variables. We won’t show this file here as it’s very long, although most of it is comments showing...

Related:

Check your PATH (export PATH) in .zshrc and remove all references to .rvm within it. You should end up with something like this export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin When installing oh-my-zsh it will look at yo...

ZURB's Foundation is a front-end for quickly building applications and prototypes. It is similar to Twitter Bootstrap but uses Sass instead of LESS. Here you will learn the basics of the grid system, navigation, tooltips and more.

Related:

#416 Form Objects pro Jun 03, 2013 | 18 minutes | Refactoring , Forms Models have a tendency to become a complex mess as an application grows. In this episode you will learn a couple of techniques to extract form-behavior out into its own class. Subscribe to Watch Episode Tweet Show N...

Related:

In this episode we’ll take a look a Draper , a gem that lets us add decorators to a Rails application’s views much like a presenter pattern. If you find that you have a lot of complex view logic in your templates and helper methods Draper can help to clean up this code by taking a mor...

#416 Form Objects pro Jun 03, 2013 | 18 minutes | Refactoring , Forms Models have a tendency to become a complex mess as an application grows. In this episode you will learn a couple of techniques to extract form-behavior out into its own class. Subscribe to Watch Episode Tweet Show N...

Related:

May 13, 2013 | 12 minutes | Performance , Active Record Caching at a low level is a great option when the view is too dynamic to cache and you need something flexible that can work anywhere in the application. Here I show a variety of ways to use Rails.cache with Active Record.

I've been in bed this past week due to a particularly bad head cold which is why there haven't been any episodes. I feel I'm on the mend now and should be able to get back to producing content later this week. Pro subscribers can extend their subscription below by one week to make up ...

# Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server whe...

May 13, 2013 | 12 minutes | Performance , Active Record Caching at a low level is a great option when the view is too dynamic to cache and you need something flexible that can work anywhere in the application. Here I show a variety of ways to use Rails.cache with Active Record.

Apr 27, 2013 | 18 minutes | Rack , APIs Here I demonstrate how to perform bulk API operations though a single request using Rack middleware. This is great if you need to trigger multiple actions at once such as if the user goes offline.