Authlogic Account Activation Tutorial

Here’s the original: Here’s my fork on github: Below is the formatted guide that is on github. Remember, all credit goes to Matt Hooks and his original Authlogic Account Activation Tutorial Introduction This is an easier to read version of Matt Hooks’ Authlogic Activation Tutorial. The tutorial is divided into a number of steps and walks through the process of implementing user activation functionality into your pre-existing Rails app using Authlogic.

How To: Setup RSpec, Cucumber, Webrat, RCov and Autotest on Leopard

Prerequisites I’m assuming you’ve got the following installed: ruby ruby gems 1.3.1 Apple development tools git rails >= 2.3.2 You’ve added github to your gem sources (gem sources -a RSpec & RSpec-Rails First let’s grab the rspec1 and rspec-rails2 gems. sudo gem install rspec sudo gem install rspec-rails Cucumber Next we’ll install the cucumber3 gem

RSpec Shared Example Gotcha

Below we have an example model, spec and shared example group. Our Dog model has its own set of functionality, but as a mammal it should still have some aspects of being a mammal. We’ve got some specs in a shared example group that we use for testing all of our mammal models to make sure things don’t get too out of whack in the universe. Our Example Model class Dog attr_accessor :name, :mammal def initialize self.

Paperclip and Amazon S3

I recently added the ability to give each one of my posts a photo. It makes the entire site a bit less boring and gives it some human feel. I found the excellent paperclip plugin from the thoughtbot guys. This allowed me to easily attach pictures, have them resized and display them along side my posts. However, I ran into some problems with managing the upload files, no worries, Amazon S3 to the rescue.