How do you get the file extension in a CarrierWave Uploader? I have quite honestly tried everything I can think of. I introspected the crap out of it.
This doesn’t work:
def filename
'filename' + self.extension
end
I’m trying to make custom file names and It’s not working.
I had a very similar requirement and I solved it this way:
It works fine.