RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: testing x
Extracting a Ruby Gem
Episode #301 – Nov 21, 2011 – 40 comments

Extracting a Ruby Gem

In this episode I show how to extract a Ruby Gem from an existing Rails application, test it with RSpec and Supermodel, and add a Railtie. (16 minutes)
Trinidad
Episode #377 – Aug 30, 2012 – 71 comments

Trinidad

Trinidad is designed to serve JRuby web applications and gives you the power of Java while still keeping the feel of traditional Rails deployment. Here I show how to setup a Capistrano recipe, configure it, and more. (15 minutes)
Sending Email (revised)
Episode #61 – Apr 28, 2012 – 71 comments

Sending Email (revised)

Thanks to Action Mailer, sending email in Rails is easy but there are several gotchas to be aware of. Here I show how to send an email upon submitting a form and the configuration options necessary. (8 minutes)
Publishing a Gem
Episode #303 – Nov 28, 2011 – 30 comments

Publishing a Gem

In this second part on making a gem, you will learn how to publish a gem by releasing it to rubygems.org, testing it through Travis CI, documenting it on RubyDoc.info, and advertising it on various sites. (11 minutes)
Console Tricks (revised)
Episode #48 – Jun 09, 2012 – 71 comments

Console Tricks (revised)

Here you will learn how to get the most out of the Rails console. I will also demonstrate several utility gems and how to use them without adding them to the Gemfile. (9 minutes)
OAuth with Doorkeeper
Episode #353 – May 23, 2012 – 90 comments

OAuth with Doorkeeper

Doorkeeper makes it easy to create an OAuth 2 provider. This episode also shows how to setup OmniAuth as an OAuth client and use the oauth2 gem to communicate with an API. (19 minutes)
Facebook Graph API
Episode #361 – Jun 25, 2012 – 60 comments

Facebook Graph API

Learn how to use the Facebook Graph API with the Koala gem to fetch data from Facebook and post content through a user. Here I delve into permissions, error handling, and more. (14 minutes)
Testing Controllers with RSpec
Episode #71 – Sep 17, 2007 – 59 comments

Testing Controllers with RSpec

Controllers are tricky to test, and there's no perfect way to do it. In this episode you will see how I test controllers, and my reasoning behind it. (11 minutes)
Testing without Fixtures
Episode #60 – Jul 20, 2007 – 49 comments

Testing without Fixtures

Tests which rely heavily on fixtures are brittle and can be difficult to maintain. This episode will show a couple techniques for creating tests which don't use fixtures. (9 minutes)
Debugging Ruby (revised)
Episode #54 – Apr 07, 2012 – 57 comments

Debugging Ruby (revised)

This episode will show you how to debug a rails app using the "debugger" gem: set a breakpoint, inspect variables and change the executed code at runtime. (7 minutes)