My Equipment: Mackie PROFX12 12-Channel Compact Effects Mixer with USB Sony MDR7506 Professional Large Diaphragm Headphone Roland R-05 Studio WAVE/MP3 Recorder Transcend 32 GB Class 10 SDHC Flash...
When preparing to add some layout features to JotRod, I realized it was a Rails 3.0.9 application. Here's a quick rundown on upgrading to Rails 3.1.3. Download 164.7 MB Download (iPod & iPhone) 3...
In order to get someone a timeline in JotRod, we need followers and following lists to compile the Jots from. This means that we need to add a new ColumnFamily called Followers and another one ca...
In the Jots (like tweets) in JotRod, I needed to generate a hash on creation as the key for the Jots. So, I determined that the easiest way to do that was to include ActiveModel Callbacks. The mo...
Here's an introduction to creating a Rails connector gem for an ORM with a model generator. Download 352.3 MB Download (iPod & iPhone) 84.7 MB Take the 2011 Readers Survey
When I started playing with Cassandra, I wound up writing part of an ORM to get what I needed from it. I want to build actual projects with Rails, Ruby, or other technologies for my videos rather...
I’m working on another Cassandra demo, but didn’t have time to finish, so I decided to show you Ruby Koans. It’s a very interesting test-driven approach to learning Ruby. I hope you enjoy i...
You can get cassandra at cassandra.apache.org and the ruby gem by running: gem install cassandra I did run into a problem with the trift_client gem when installing. If you get a Load Error, run t...
With the recent release of the Google Plus beta (ask me for an invite if you want one), I felt it appropriate to show a simple way to create a Like or +1 button for your Rails application. The ap...
Specification Clicking a star rating turns on the stars to the left of the star I clicked. Clicking a star submits the star rating. When I refresh the page, the star ratings should be persistent....
For a basic deployment recipe, check out Basic Deployment with Capistrano This episode demonstrates how to extend deployment to deploy to stage and production. Overall it’s rather simple. All i...
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 poly...
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" as...
On the Ruby Rogues podcast I mentioned that I had moved away from Cucumber to RSpec and Capybara for my integration tests. Here's a demo on how to do some TDD with RSpec and Capybara. Download 18...
CoffeeScript offers more than nice syntax for setting and managing data and functions. It also offers Classes, Inheritance, access to a 'super' method, Ruby-style string interpolation, easy varia...
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 mana...
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 n...
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...
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 9...
This is a basic demonstration of adding a rake task to Ruby on Rails. Some of the same principles apply to Rake in general. You also see how to call out to the command line and how to convert ERB...
This is a basic implementation of creating bookmarks for our delicious clone using the Rails built in REST. I also found out that you need the haml-rails gem in order to get your views to gene...
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 s...
Run your tests faster with parallel_tests gem using all the cores you have on your computer. Download Download (iPhone & iPod)
This is a quick demonstration of how to switch your Rails 3 application to HAML from ERB.
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 log...
Here is what I've done to create this application: Use the 'rails new' command to create a rails application Set up the Gemfile Configure the Database Install Cucumber Install Rspec Install Devis...
This video demonstrates how to build a countdown timer with the setInterval function in Javascript, a text field, and jQuery to update your text field. Download 70.8 MB Download (iPhone & iPod) 4...
Capistrano has been the most popular way to deploy Ruby and Rails applications for a long time. This video provides a quick demonstration of a basic recipe for deploying a Rails 3 application. I ...
I'm trying something new and using the YouTube player. Let me know if you see any differences. In this video, I demonstrate how to create, merge, and delete local and remote branches in Git. Git ...
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. Download 90.9 MB Downl...
Sinatra has a really nice DSL. You can fake the basics of the DSL with some simple Rack middleware created by metaprogramming. If you like the screencasts, please give $5 to help me get to RubyCo...
Rack is the basis for most major web frameworks in Ruby (like Ruby on Rails.) This video gives a basic overview on how it is used and what features make it a powerful component for Ruby Web Frame...
This is the continuation of the Rails 3 Build a Blog series. This episode includes implementation of the Edit and Destroy methods on the Posts Controller. There are a lot of things left to cover ...
In this screencast, I show you how to generate the api and guides for offline viewing. Download 28MB Download iPhone/iPod 7MB
This video goes over some issues that popped up while upgrading a Rails 3 application to the Release Candidate This video goes over some issues that popped up while upgrading a Rails 3 applicatio...
Quick Ruby Tip: The inject method is useful for aggregating data across a dataset. For example a summation could be done with inject (by aggregating each number into the sum.) Download 49.1 MB Do...
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 crea...
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...
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...
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. Downlo...
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 ...
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...
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 ...
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 sim...
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 th...
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...
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 g...
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
Are you new to Ruby and want to get a head start? In this screencast, I discuss some of the most common methods and techniques that have to do with strings, arrays and hashes. This is also excell...
In this screencast, we continue on our task of creating a 'Stack Overflow' clone by adding more domain classes and relationships between them. We also cover how to test your classes using integra...
Are you new to Grails? Grails is an excellent alternative to Ruby on Rails, which uses Groovy / Java. In this screencast, learn how to create a simple CRUD system with Grails. Download 83 MB Down...
In this screencast, I cover how to create an admin section with a separate login, and describe how nested controllers work. Download 141.5 MB Download (iphone & ipod) 60.4 MB
Create a Ruby on Rails Jukebox Application and implement the "permalink" feature instead of the usage of "ID". Taking advantage of the "Counter Cache" you will be able to automatically keep track...
Want to know the basics of CSS? Watch this screencast and learn everything you should know as a web developer. We'll cover the basics which include colors, borders, padding, margins, lists, fonts...
Learn how to spawn background processes using Ruby and the Process class. Here we discuss the difference between 'wait' and 'detach'. Download 68.4 MB Download (iphone & ipod) 24 MB
In this screencast we'll cover using variables, mixins and operations with LESS while building the header for the our Flitter front end. In this screencast we'll cover using variables, mixins and...
In this screencast we'll cover the basics of setting up a LESS file to compile into CSS as we provide an HTML front end to Flitter, a Ruby on Rails Twitter clone. Download 55.1 MB Download (iphon...
Tim Harper (tim.theenchanter.com) presents a 13 minute tour of some of his favorite bash features that he uses on a daily basis. The font size is tiny, so be sure to watch it in full screen. Down...
This is the third and final episode on introduction to MongDB. In this screencast, we demonstrate MongoMapper and how to use it in a Rails app. Download 21.8 MB Download (iphone & ipod) 9.5 MB
In this screencast we'll cover aligning floated elements on an HTML page using jQuery, the jQuery Masonry plugin and CSS. Download 83 MB Download (iphone & ipod) 55 MB
This is the second part of the series on MongoDB. In this screencast, we create a small Sinatra app called YASI that accesses the data using MongoDB. Get the code at http://blog.rubyhead.com/file...
In this screencast, you will see the basic CRUD operation using MongoDB shell. This is the first installment of a series on MongoDB. Download 36 MB Download (iphone & ipod) 17 MB
In this concluding episode, we go over how to add search functionality to our Flitter application, and add a 'follow / unfollow' button which uses AJAX. This is the last of the 6-part series on h...
As I run the final stretch to see if I can get a RubyConf ticket, I decided to create a little tool to help me out. If you visit http://search.twitter.com, you will see that they have a search pa...
The saga continues. Here we learn how to add the friends list to your application and we use AJAX to add/remove friends. Download 251.4 Download (iphone & ipod) 111.4
We're almost done! The remaining screencasts are already recorded, but not edited yet. To speed things up, I split it up into 3 or 4 screencasts. This one shows how to make the site look and feel...
Don't want to take the time to create a layout for your new Ruby on Rails application? Don't worry. Use the Themes plugin! In this screencast, I show you how to easily add a layout with built-in ...
Have you ever wanted to run a script or command from the command line and insert data into your rails application?, watch this this screencast and you will see the basics of how to interact with ...
In this screencast, we continue our challenge of creating a Twitter clone called 'Flitter' using Ruby on Rails. We learn how to use jQuery to create a countdown for the text area box. We also set...
Now that we have a backbone to our 'Flitter' application, we learn how to create the front end and tie it all together. In this screencast, I cover a lot of CSS and getting your site to look good...
In this screencast you will see how to make a rails application capable of parse and execute shell commands using the ruby function %x The screencast start with basic shell commands, creation of ...
Learn how to save data such as bank information, social security number, or other sensitive information in your Rails application securely by encrypting the data. By using spikex's gem Strongbox,...
Ruby on Rails gives you some simple but powerful tools for mapping URL's and HTTP Verbs to your Controllers and Views. Here is a simple walkthrough of 4 of these 'Routes': default routes, regular...
In this screencast, I show you how to use the Twitter gem to connect to Twitter, and we clarify some of the difficulties that comes with learning OAuth. Download 67 MB Download (iphone & ipod) 23...
This is a screen-cast explaining how to use blocks in ruby. Download 99.9 MB Download (iphone & ipod) 24.5 MB
Quick demonstration on how to create a HD Video that looks sharp on Vimeo.com. I just go over the settings required for creating and exporting the video. Download 18 MB Download (iphone & ipod) 5...
In this series, I attempt to recreate a twitter style application called 'Flitter'. In this installment, I show you how to create an authenticated system easily using existing tools. I also show ...
An introduction to GitHub, which includes how to create new repositories, set up your account, push and pull, clone and send pull requests. Download 85.4 MB Download (iphone & ipod) 30.4 MB
This is a basic introduction to integration testing with cucumber. In it, I describe how to use cucumber and rspec to implement a feature in a web application, emphasizing the importance of writi...
Learn how to create a simple plugin using Ruby on Rails. This video will teach you how to turn a view helper into it's own plugin, and extend the ActionView::Base. Download 13 MB Download (iphone...