Re: file_column on windows?


#1

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.