Tuesday, February 17, 2009

From File_column to Paperclip (a.k.a 'No more RMagick')

Today was the 'upgrade to Rails 2.2.2' day at the office. While updating the system, I also replaced the good 'file_column' with the better 'Paperclip' plugin.

There were basically 3 reasons for my choosing paperclip over the other:

1) I won't have to go through the hell of installing RMagick ever again
2) Paperclip doesn't consume nearly as much memory while uploading files
3) @user.photo.url is a cleaner syntax than url_for_file_column(@user, "photo")

Thanks to RailsCasts for introducing me to Paperclip.

No comments:

Post a Comment