I just used the instructions found at OnRails.org and they worked perfectly, but for a couple of packages that moved.  I also went to the trouble of finding the latest release of each component, and everything still works.

Just a pointer for anyone tearing their hair out looking for native ImageMagick install instructions.

Using restful_authentication

| | Comments (0) | TrackBacks (0)
Implementing restful_authentication and wanted to make note of the minor gotchas along the way.  I know at least some of these are in the documentation for the plugin, but nonetheless...

First, I installed mailtrap so I could see what was being sent by the app without doing any further configuration, or even using real email addresses.

sudo install mailtrap
mailtrap start

The default install was not sending the notification email.  Some digging showed that although the observers are all there in the default code, they are not configured.  So in environment.rb, add:

config.active_record.observers = :user_observer

The next issue is that the confirmation url sent has no route.  Add to config/routes.rb:

map.connect '/activate/:activation_code', :controller => 'users', :action => 'activate'

Done!

def send

| | Comments (0) | TrackBacks (0)
I just spend an absurd amount of time tracking down a bug caused by by poor choice of controller action name.  So don't use def send ...

This I finally noticed the log had 
/!\ FAILSAFE /!\
in it, and Googled that.  Bingo.
Just a quick FIRST POST!!!!1! to note that I'm in Portland, Oregon, for RailsConf.  Smooth flight, no delays, easy ride on the MAX to downtown.  Not staying at a conference hotel, which is a double-edged banana.  If evening activities are cool, I'll regret it, but the hotels near the OCC are fleabags (at least, for the price they are).

Now off to meet with some other local geeks of a different stripe...