0

I am generating a sheet using axlsx gem where I have to concat the image url with the root url. Right now I am doing this in the following way-

sheet.add_hyperlink location: 'http://localhost:3000'+user.file.url, ref: sheet_row.cells[7] if user.file.present?

What is the convenient way to specify the URL? I do not want to put http://localhost:3000.

jisan
  • 33
  • 1
  • 11

0 Answers0