Topic: Paperclip and PATH question.
I would like to know if its possible to set my path other models data?
Here is what i have in mind.
I have a company. I can attach several photos.
But i would like to have my has_attached_file path like this :
models : company_photos
has_attached_file :photo, :path => ':rails_root/public/photos/:company_name/:id'
how can i get the :company_name attribute? I have tryed with @company.company_name but doesn't worked.