How make a link to html file


#1

Hi …
i want to make link to html file.which i have in my rails application
folder.
below is my source genearted by html.
but when i click the link i get error => Firefox doesn’t know how to
open this address, because the protocol (d) isn’t associated with any
program.

click here

my actual code is<%file_path.each do |f|%>

click here

<%end%>


#2

Hi,

Do you really want to print links to local files?
Well, you are missing a file:// in you href attribute.

ciao, tom

On Jan 30, 10:01 am, Newb N. removed_email_address@domain.invalid


#3

Thomas r. Koll wrote:

Hi,

Do you really want to print links to local files?
Well, you are missing a file:// in you href attribute.

ciao, tom

On Jan 30, 10:01�am, Newb N. removed_email_address@domain.invalid

thanks for the reply.i used like below.
<a href="<%= “file://”+ RAILS_ROOT + f %>"> click here

below is a source for above code.when i click the link it doesn’t show
me any error but the file didn;t opened.waht would be the problem pls
help.
<a
D:/Projects/inProgress/ANGACM0908/re/Task/acm_administration/ChatHistory/2009-01-05/removed_email_address@domain.invalid~Vs~removed_email_address@domain.invalid/removed_email_address@domain.invalid~Vs~removed_email_address@domain.invalid">
click here