The most likely culprit is the MIME type. Check out this link:

http://superuser.com/questions/284497/determine-the-mime-type-when-downloading-a-file

-- 
Posted via http://www.ruby-forum.com/.