Here’s the original: http://github.com/matthooks/authlogic-activation-tutorial/tree/master Here’s my fork on github: http://github.com/clayton/authlogic-activation-tutorial/tree/master 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.
Here’s why I decided to give Nginx a shot: Nginx is lightweight and has a small memory footprint Nginx is super fast Nginx can be easily configured to send rails requests to mongrel, thin and others Nginx has easy to read configuration logs and rewriting rules I get to learn something new! Note: All ApacheBench test results displayed are the from the 4th consecutive test. This minimizes the negative effects of the slow startup of ruby processes with Phusion Passenger where the initial requests take a considerably long time.
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.
A common requirement of a visitor facing web application is that the administration component of the app is behind a login with a different layout, style sheet and feel. Rails 2.0 makes this very simple with namespaced controllers. On a recent project the specs called for the administration to live under an /admin path, simple enough. script/generate controller admin/employees index show new create edit update Perfect, now I’ve got my new controller and some views.