Rails File Upload and Content Types

You’re most likely going to deal with file uploads within your Rails application.  If you haven’t yet, it’s coming and hopefully this will save you some time.  I spent about an hour today racking my brain as to why I couldn’t validate different image types: image/jpeg, image/gif, and image/png.  I was doing a simple string [...]