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-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~gopinath-2DSrjwymGrfc+919tysfdA@public.gmane.org/jayabharathy-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org"> click here </a> my actual code is<%file_path.each do |f|%> <a href="<%= RAILS_ROOT + f %>"> click here </a> <%end%> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> my actual code is<%file_path.each do |f|%> > > <a href="<%= RAILS_ROOT + f %>"> click here </a> > > <%end%>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>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-2DSrjwymGrfc+919tysfdA@public.gmane.org~Vs~joy-2DSrjwymGrfc+919tysfdA@public.gmane.org/jayabharathy@angleritech.com~Vs~kannan-2DSrjwymGrcRJS1jRW8iBb2l4gXCY/A6@public.gmane.org"> click here </a> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---