I have two scenarios for using Paperclip, but I'm not sure how to configure the settings, or if this is possible or even necessary. You need the advice of more experienced professionals on this.
Firstly, I have a document model for downloads such as PDF files that will be defined:
has_attached_file :document...
This will give me column names like @ document.document_file_name. Anyway, could I have @ document.file_name instead?
Secondly, I have Gallery.rb, which has a lot of Picture.rb. The same scenario is here. Can I avoid @ picture.picture_file_name? Or is this something that should really be missed with the benefits that Piperklip gives.
Thanks in advance for any input.
source
share