I use Paperclip-FFMEG to upload video files to my development environment (and, ultimately, to the local server when my project goes into production).
When videos are uploaded, the default file name is as follows:
/system/modelnames/paperclipnames/.../mynewfile.mp4?xxxxxxxxxx
I believe that the number 10 digits after the question mark is a timestamp.
However, the player that I will use to play the video does not want to have anything after attaching the file, so I would like to remove the question mark and timestamp after it before transferring the URL to the player.
I tried using the following Ruby function (I think):
temp_variable = model.paperclipattribute.url(:blah).strip('?')[0]
However, Rails raises an error:
wrong number of arguments(1 for 0)
, ? ? , .
!