I’m looking for a way to create a link to a local file with the
spreadsheet gem. I can make a link to a site (see example below), but
what is the syntax for a file?
As far as I am aware, you can only use absolute paths with
file:///path_to_file as it is an address to a local file resource on
your system, same as http://path_to_resource points to an address
somewhere else in the world.
If you set up a hyperlink in Excel manually, and hover over it, you will
see that it will build the link as an absolute reference. If you try to
build it as a relative address, then the application can’t find the file
(I think).
Open to correction if somebody knows better.
Cheers
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.