Forum: Ruby on Rails Re: file_column on windows?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ted S. (Guest)
on 2006-02-24 06:11
(Received via mailing list)
I am not able to get this to work on Windows, and the problem has been
documented with a fix here, but I can't get the fix to work, either.
Ok, I
admit it: I am a newbie with rails!

here is the problem's fix:

You can fix your file_column for now by replacing the get_content_type
method in lib/file_column.rb with this version:

    def get_content_type(fallback=nil)
      content_type
    end

But when I try this, I get:

undefined local variable or method `content_type' for
#<FileColumn::TempUploadedFile:0x370f9a8>

Obviously, I am doing something wrong... any help would be appreciated.
This topic is locked and can not be replied to.