railscasts.com Archives - 20 September 2013, Friday

  • #30 Pretty Page Title

    railscasts.com 20 Sep '13, 7pm

    If you are like me, you avoid creating page titles because it is kind of a pain. But in this episode I will show you a clean way to add titles to your pages.

  • #371 Strong Parameters (pro)

    railscasts.com 20 Sep '13, 2am

    #371 Strong Parameters pro Aug 03, 2012 | 12 minutes | Plugins , Authorization , Rails 4.0 The strong_parameters gem is an improvement over attr_accessible to securely handle mass assignment even when you have complex authorization logic. The functionality will likely be added to Rail...

  • #164 Cron in Ruby

    railscasts.com 15 Sep '13, 9pm

    Cron is great for handling recurring tasks, but it is an external dependency with a crazy syntax. In this episode I show you how to use Whenever to create cron jobs with Ruby.

  • #139 Nested Resources

    railscasts.com 15 Sep '13, 2pm

    Dec 08, 2008 | 10 minutes | Routing , Rails 2.2 In this episode I show how to nest resources through routing and go into some new additions in Rails 2.2. Click to Play Video ▶ Tweet Download: source code Project Files in Zip (93.6 KB) mp4 Full Size H.264 Video (16.1 MB) m4v Smaller H....

  • Ruby on Rails Screencasts

    railscasts.com 14 Sep '13, 8pm

    A slow test suite can put a damper on test-driven development. In this episode I show a variety of ways to optimize specs including: selective testing, preloading Rails, and testing outside of Rails.

  • #356 Dangers of Session Hijacking

    railscasts.com 14 Sep '13, 3pm

    If a user's authentication cookie is sent over an insecure connection it is vulnerable to session hijacking, or more specifically, sidejacking. Learn how this is done, and how you can prevent it.

  • #362 Exporting CSV and Excel

    railscasts.com 12 Sep '13, 3am

    As you will see it is easy to add a CSV export option to Rails. Here I also show how to export for Excel in a variety of formats.

  • #209 Introducing Devise

    railscasts.com 10 Sep '13, 2am

    Devise is a full-featured authentication solution which handles all of the controller logic and form views for you. Learn how to set it up in this episode.

  • #314 Pretty URLs with FriendlyId

    railscasts.com 09 Sep '13, 6pm

    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 ...

  • #31 Formatting Time

    railscasts.com 08 Sep '13, 2pm

    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...

    Related:
    1. Announcement railscasts.com 02 Sep '13, 1pm
  • rails geocoder

    #273 Geocoder

    railscasts.com 07 Sep '13, 9am

    If you need to work with geographic data, Geocoder is an excellent gem for converting addresses and coordinates, finding nearby locations, determining distances, and more!

  • Announcement

    railscasts.com 02 Sep '13, 1pm

    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:
    1. #31 Formatting Time railscasts.com 08 Sep '13, 2pm
  • #415 Upgrading to Rails 4

    railscasts.com 10 Aug '13, 2am

    With the release of Rails 4.0.0.rc1 it's time to try it out and report any bugs. Here I walk you through the steps to upgrade a Rails 3.2 application to Rails 4.

  • #417 Foundation

    railscasts.com 28 Jul '13, 11am

    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.

  • #196 Nested Model Form (revised)

    railscasts.com 21 Jul '13, 10pm

    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...

  • #121 Non Active Record Model

    railscasts.com 20 Jul '13, 5pm

    This episode will show you how to make a model which isn't based on Active Record. You may want to do this if a resource isn't backed by the database.

  • #402 Better Errors & RailsPanel

    railscasts.com 20 Jul '13, 4am

    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.

  • Announcement

    railscasts.com 01 Jul '13, 7am

    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...

  • #417 Foundation

    railscasts.com 23 Jun '13, 10pm

    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:
    1. #417 Foundation railscasts.com 17 Jun '13, 5am
  • #308 Oh My ZSH

    railscasts.com 23 Jun '13, 5am

    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...

  • #417 Foundation

    railscasts.com 17 Jun '13, 5am

    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:
    1. #417 Foundation railscasts.com 23 Jun '13, 10pm
  • #416 Form Objects (pro)

    railscasts.com 16 Jun '13, 8am

    #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:
    1. #416 Form Objects (pro) railscasts.com 04 Jun '13, 4am
  • #286 Draper

    railscasts.com 15 Jun '13, 9am

    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)

    railscasts.com 04 Jun '13, 4am

    #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:
    1. #416 Form Objects (pro) railscasts.com 16 Jun '13, 8am
  • #115 Model Caching (revised)

    railscasts.com 27 May '13, 8pm

    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.

  • Announcement

    railscasts.com 26 May '13, 9pm

    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 ...

  • 後で読む / “#368 MiniProfiler - RailsCasts”

    #368 MiniProfiler

    railscasts.com 26 May '13, 7am

    MiniProfiler allows you to see the speed of a request conveniently on the page. It also shows the SQL queries performed and allows you to profile a specific block of code.

  • #271 Resque

    railscasts.com 25 May '13, 10pm

    Resque creates background jobs using Redis. It supports multiple queue and comes with an administration interface for monitoring and managing the queues.

  • #415 Upgrading to Rails 4

    railscasts.com 25 May '13, 4am

    # 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...

  • #321 HTTP Caching (pro)

    railscasts.com 22 May '13, 9pm

    #321 HTTP Caching pro Jan 30, 2012 | 15 minutes | Performance , Views , Caching With HTTP response headers you can the cache in the user's browser and proxies. Etags, Last-Modified, Cache-Control and Rack::Cache are all covered here Subscribe to Watch Episode Tweet Show Notes ASCIIcas...