lundi 24 décembre 2018

How paperclip retruns the path to that file which is uploaded rather then path with file name

Hi I am using Ruby on rails to load the assets on to the page with paperclip:

In paperclip by using

render file: @garment.xhtml_file.url

will return the path

:"/home/tukatech/rails_projects/live_tukagarments/public/system/xhtml_files/60/Cycle_Suit.xhtml?1545631909"

But my requirement is upto :

"/home/tukatech/rails_projects/live_tukagarments/public/system/xhtml_files/60/Cycle_Suit.xhtml"

not including the dust is there a way to do it in paperclip

Aucun commentaire:

Enregistrer un commentaire