Latest Screencasts
Polymorphism with Many-to-Many Associations – A Teach Me To Code Tutorial
Teach Me To Code - 2011-06-03 - free
Polymorphic associations are very simple, as are many-to-many associations. When you blend the two, it’s not nearly as simple. Since there isn’t a working build-in mechanism for many-to-many polymorphic associations. Here’s a quick demo of what happens if you try to set up a traditional has_many :through association with a polymorphic association. I also show [...]
Watch this screencastMany to Many Associations in Ruby on Rails – A Teach Me To Code Tutorial
Teach Me To Code - 2011-05-27 - free
I had several requests in UserVoice to provide a Many to Many tutorial in Rails. This is a demonstration of how to put together a “has and belongs to many” association and a “has many through” association. This is somewhat basic to Ruby on Rails, but important if you need to associate different models. Download [...]
Watch this screencastRails 3.1 Beta – Sprockets, CoffeeScript, and JQuery – A Teach Me To Code Tutorial
Teach Me To Code - 2011-05-07 - free
Ruby on Rails 3.1 is moving to use Sprockets to compile CoffeeScript into JavaScript and include JQuery in it’s JavaScript by default. This is a quick demo of how it all hangs together to manage your JavaScript in Rails 3.1.
Watch this screencastCoffeeScript Basics – A Teach Me To Code Tutorial
Teach Me To Code - 2011-04-15 - free
CoffeeScript is now going to be a default installation with Ruby on Rails. So, I installed CoffeeScript and NodeJS and have been playing with it for the last hour or so. Here are the basics you need to know to use CoffeeScript including functions, arrays, hashes (objects), control functions (if, else, unless) and loops. [...]
Watch this screencastSingle Table Inheritance – Ruby on Rails Tutorial
Teach Me To Code - 2011-04-08 - free
Single Table Inheritance is a great way to handle related models that descend from the same class. The classic example is a Car class with Ford, Chevy, and Honda subclasses. This Ruby on Rails Tutorial provides an example and explains how Rails puts all of the information in the same database table and allows [...]
Watch this screencastCompass, SASS, and the 960 Grid System – Delicious Clone
Teach Me To Code - 2011-03-25 - free
In preparing to show off SASS, I found the Compass system, which uses SASS and organizes your stylesheets in a unique way. In this tutorial, I walk you though installing compass, installing the 960 grid system, and organizing your SASS stylesheets in an intelligent way. One note, I couldn’t remember the URL for the 960 [...]
Watch this screencastCanCan: Setting Permissions – Delicious Clone
Teach Me To Code - 2011-02-11 - free
In this installment in the Delicious Clone, we use CanCan to set some permissions on the Bookmarks Controller. Next week, we’ll finish the bookmark creation process and the following, we’ll add styling with SASS.
Watch this screencastSwitching to HAML – Delicious Clone
Teach Me To Code - 2011-02-02 - free
This is a quick demonstration of how to switch your Rails 3 application to HAML from ERB.
Watch this screencastSetting Up And Testing Devise – Delicious Clone
Teach Me To Code - 2011-01-21 - free
Because I’m going to be testing in cucumber sections of the site that require a user to be logged in, I decided to get it out of the way. So, in this video, I write a cucumber feature to test login and round it off with a few tests on the devise generated user model [...]
Watch this screencastOAuth with the Twitter Gem
Teach Me To Code - 2010-10-06 - free
Twitter just turned off Basic Auth and is forcing application developer to use OAuth. Here is a demonstration of how to add Twitter OAuth to your Ruby on Rails Application.
Watch this screencast