ASCIIcasts - Recent Episodes

A variety of short articles about Ruby and Rails based on Ryan Bates' Railcasts.


  • “Episode 396 - Importing CSV and Excel” 02 Jan '13, 1am

    In episode 362 we showed how to export database records to a CSV or Excel file. Since then there have been a number of requests for an episode showing how to import records from these types of files so that’s what we’ll cover in this episode. We’ll do this by adding a form to the bott...

  • ASCIIcasts - “Episode 330 - Better SASS With Bourbon” 12 Mar '12, 3am

    To use Bourbon with Rails’ asset pipeline we’ll need to change the way that the default application.css file works. By default this file will use a Sprockets manifest to load each of the other stylesheet assets. The problem with this is that Sprockets compiles each SASS file into CSS ...

  • simple configuration login, not using gem

    “Episode 274 - Remember Me & Reset Password” 08 Apr '13, 9pm

    The authentication we implemented in those episodes was fairly basic so in this episode we’ll add a couple of new features to make it better. First we’ll add a “Remember Me” checkbox to the login page so that users can choose to be logged in automatically then we’ll add a “Reset Passw...

  • Deadweight looks perfect for this: Github: Railscasts: ASCIIcasts:

    180 - Finding Unused CSS” 22 Mar '12, 3pm

    Any medium or large-sized website probably has a large amount of CSS spread across one or more stylesheets and the chances are that there are selectors in those stylesheets that are no longer used on any of the pages in that site. These selectors should be removed but they rarely are ...

    1. #334 Compass & CSS Sprites 22 Mar '12, 5am
  • Neat! Decent Exposure makes it easier to write concise controllers:

    259 - Decent Exposure” 19 May '13, 4pm

    In this episode we’re going to look at a gem called decent_exposure . This is a simple gem with a nice concept. We can use it to create an interface of methods in the controller that the view can access instead of using instance variables. The gem uses a method called expose to define...

  • “Episode 257 - Request Specs and Capybara” 26 Jul '12, 12am

    If we run the specs now we’ll have two passing specs, so it looks like our code works as expected. If we were doing test-driven development we’d start with a failing spec and then write code to make it pass and this is one of the advantages of test-driven development as it ensures tha...

  • public_activity // social network-style / “ASCIIcasts - “Episode 406 - Public Activity””

    406 - Public Activity” 05 May '13, 4pm

    Another potential issue is that in Comment calling controller.current_user raises an exception if we try to create a record outside the current request as there won’t be a controller. We’ll check to see if there is a controller here before trying to fetch the current user from it. /ap...

  • @johnbarton writing an interceptor for this case is pretty trivial.

    “Episode 206 - Action Mailer in Rails 3” 02 Jul '12, 6am

    Next we need to write the code that will deliver the email when the user is created. Some people like to use a Model Observer to do this, but we’re going to keep the code in the controller layer. The reason for doing it this way is that if we do use an observer and then create User ob...

RailsCasts: Ruby on Rails Screencasts
Ruby Inside: The Ruby Blog
Ruby on Rails Guides
Ruby Weekly: A Free, Weekly Ruby E-mail Newsletter
Rails for Zombies: Code School
Learn Web Development with the Ruby on Rails Tutorial