I am new to rails and paperclip plugin – so I apologize if this is as a silly question.
I am trying to upload a file and later access the url for the file url. In dev, the file gets stored locally while in prod, the file is pushed to s3.
Once the model is stored in the db, how to I get the url later on to display the link?
When you specify a paperclip association in a model you do :
To get the url, you have to do :
Where :original is the file format, it can be :medium, :thumb…