Teach Me To Code Screencasts

Rails 3 – Building a Blog – Part 2: CRUD Show and Create

The second part of the tutorial for building a blog with Ruby on Rails version 3. We demonstrate how to set up some basic routes, manage the controller and views, and create a basic form for creating posts. Download 161.4 MB Download (iphone & ipod) 65.8 MB

Read More

Rails 3 – Building a Blog – Part 1: Test Setup & Generators

Every good project needs a good setup. In this episode, I set up a github repo, create a new rails application, hook in Cucumber and Rspec, write a Cucumber feature, and write the code to make it pass. Download 142 MB Download (iphone & ipod) 59 MB

Read More

RSpec Matchers

RSpec gives us many powerful tools to make our tests readable. Matchers allow us to provide custom predicates to our should statements that succinctly define the behavior of our code. Download 27 MB Download (iphone & ipod) 14 MB

Read More

Ruby Method Name with Spaces

This is an introduction to Ruby metaprogramming where I cover two different ways to define a method. The idea actually started as a joke, but there are valuable lessons to be learned here. Download 11.2 MB Download (iphone & ipod) 4.9 MB

Read More

Shoulda on Rails

Shoulda is a framework that sits on top of Test::Unit and adds a ton of nice features like macro’s, nested context, and the ability to create custom tests in a block-based DSL. Download 160.2 MB Download (iphone & ipod) 71.9 MB

Read More

RSpec Subjects

RSpec provides an extremely concise way of representing simple tests to be called on new instances of a class or on explicitly defined receiver objects. You can do this by using ‘subjects’ either as defined by the ‘describe’ or the ‘subject’ methods. Download 38 MB Download (iphone & ipod) 18.2 MB

Read More

Code Metrics with Metric Fu

Maintainability of your code can be measured in many different ways. Jake Scruggs has combined several of the tools that measure you code into one Ruby Gem: metric_fu. Here’s a demonstration. Go check it out! Download 116.1 MB Download (iphone & ipod) 55.8 MB

Read More

Ruby’s Percent Functions

Ruby uses special characters to define certain data types. If you wish to use these characters in your data types, you need to escape them or use percent functions. Percent functions are much simpler. Download 35.8 MB Download (iphone & ipod) 14.7 MB

Read More

Nested Forms With JQuery

Ruby on Rails allows you to nest models within a form. Ryan Bates of Railscasts demonstrated how to set up these forms with JavaScript using the Prototype framework, which ships with Rails. In this episode, Charles Max Wood gives a brief overview of how Ryan’s code works, and then refactors the JavaScript to use JQuery….

Read More

RVM – Ruby Version Manager

RVM is a program that allows you to install and manage multiple versions of Ruby and Gems. This setup is ideal for testing your application or gem (library) against multiple versions of Ruby.Also, if you’re looking into Rails 3 on Ruby 1.9 this is a great way to try it out. Are you thinking about…

Read More

Gem Bundler

Loading multiple Ruby Gems can result in runtime errors when an incompatible version of a gem dependency is already loaded as a dependency of another gem.Gem bundler can also pre-load and cache gems for faster loading. Having two gems that require different versions of the same dependency can sometimes cause runtime errors. Yehuda Katz and…

Read More

Skinning in Grails

In this screencast, I cover how to use custom Grails configurations along with filters to enable url-based site skins. Download 98.7 MB Download (iphone & ipod) 47.8 MB

Read More