Forum: Ruby on Rails how make a link to html file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3083ca8f0496edaac2fa10c20630d0bc?d=identicon&s=25 Newb Newb (newb)
on 2009-01-30 10:01
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.
<a
href="D:/Projects/inProgress/ANGACM0908/re/Task/acm_administration/ChatHistory/2009-01-08/martin@angleritech.com~Vs~gopinath@angleritech.com/jayabharathy@angleritech.com~Vs~kannan@angleritech.com.html">
click here </a>

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

<a href="<%= RAILS_ROOT + f %>"> click here </a>

<%end%>
978ed7ca309d5495078702096f9add03?d=identicon&s=25 Thomas r. Koll (tomk32)
on 2009-01-30 10:46
(Received via mailing list)
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 Newb <rails-mailing-l...@andreas-s.net>
3083ca8f0496edaac2fa10c20630d0bc?d=identicon&s=25 Newb Newb (newb)
on 2009-01-30 11:18
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 Newb <rails-mailing-l...@andreas-s.net>


thanks for the reply.i used like below.
<a href="<%= "file://"+ RAILS_ROOT + f %>"> click here </a><br>
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/kannan@angleritech.com~Vs~joy@angleritech.com/jayabharathy@angleritech.com~Vs~kannan@angleritech.com.html">
click here </a>
This topic is locked and can not be replied to.