--
You received this message because you are subscribed to the Google Groups "carrierwave" group.
To post to this group, send email to carri...@googlegroups.com.
To unsubscribe from this group, send email to carrierwave...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/carrierwave?hl=en.
The solution I posted works fine for me on 4 different applications. Not sure why it didn't work for you.
def document_filename
read_attribute(:document)
end
should do the trick, now you can call that method from the view. I'm
starting to believe that CarrierWave should by default map to a
different column, like Paperclip does, obviously this bis quite a
breaking change, so we probably can't change it. Just food for
thought. At least we should have a somewhat sensible API for this.
/Jonas
At least we should have a somewhat sensible API for this.
File.basename(path) works for getting the filename, but it seems to mess up the file naming for versions. For some reason it then stores versions as thumb_thumb_filename.jpg instead of just thumb_filename.jpg (I'm using :fog storage).