Better automated testing with Guard and Spork
Rolling your own authentication with has_secure_password
After people have had a chance to read it and give feedback, I'll roll up the result as a PDF and start production on the new screencasts. Sign up for the Rails Tutorial News Feed to be notified of new product releases.
Bug reports
One of the great things about publishing early and often is being able to fix errors reported by readers. The first edition of the …
Spork improves the loading time of your test suite by starting up your Rails application once in the background. Use it with Guard for the ultimate combo in fast feedback while doing TDD.
… # @level=0, @ buffer={}, @auto_flushing=1, # @ guard=#<Mutex:0x00000000b6dde8>, # @log=#<File:/home/x/demo/log/development.log>>
If you've been following closely, you probably saw this coming from a mile away, even if you couldn't predict the exact behavior. It's worth mentioning that even Rails knows that this sort of setup will lead to bad things, but their checks which raise an error when they spot this …
Hire a Guard for Your Project - Useful automation tool to react to file changes, for everything from running tests to compiling CoffeeScript to whatever else you can think of.
Add-on Compatibility for Firefox 8 - Yeah, I've been writing FF extensions (and ones for Safari, Chrome, and IE as well). The official add-ons blog is essential reading if you're chasing version compatibility for Firefox.
Resque Mail Queue Gem - Simple asynchronous …
Here I show how I would add tests to the password reset feature created in the previous episode. I use RSpec, Capybara, Factory Girl, and Guard to make request, model, and mailer specs.
Guard:: RSpectacle automatically tests your application with RSpec when files are modified. This sounds like guard-rspec on the surface, but RSpectacle acts as an 'embedded' runner within a running Rails app and reloads changed files on the fly.
Juvia: An Open Source Commenting System from Phusion
For a while now, Hongli Lai of Phusion (the geniuses behind Passenger and REE) has been working on a Rails-based open source commenting system that you can …