Monthly Archives: May 2007

Was getting an odd error this morning:

SyntaxError in OrganizationsController#show

compile error
vendor/rails/activerecord/lib/active_record/base.rb:1359: syntax error
Object::0

Turned out one of my columns had the name “type”. Not a good thing.

I tried out attachment_fu with Mike Clark’s tutorial and so far so good. This tutorial walks through the process of uploading and saving attachments i.e. images and resizing them into thumbnails. There are so many shady RoR tutorials out there so its refreshing to have Mike Clark explain in a easy going non-technical way. His approach is let Rails do the work for you and I couldn’t agree more.

Mike offers three image processor choices and I tried ImageScience and Minimagick. RMagick was skipped for no particular reason other than it was bigger than what I needed. I tried Minimagick first and I couldn’t get it working at all. Finally I tried ImageScience and with some help I was able to get it working.

I was about to write a helper for state and country select drop-downs when I found a handy link:

http://27.org/isocountrylist/

2 SQL files – 1 for states and 1 for countries. I imported the script into mySQL with no problems. For RoR, I renamed the country table to countries.

http://rubyforge.org/projects/mailee/

Need to fix a few bugs and I’ll post an alpha and more of a description of what it does and doesn’t do.

I’ll be posting a quick and easy RoR Mailing List Application on RubyForge the next few days. More to come.