From: James Britt Date: 2007-09-15T14:24:59+09:00 Subject: Re: Source a javascript and stylesheet into rhtml file Phlip wrote: > Tim Trampedach wrote in message ne\ > >> I'm trying to do a quick dump of a javascript and style sheet located in >> their respective /public directories into an rhtml file. > > <%=h File.read(RAILS_ROOT + '/public/javascript/my_source.js') %> > > This is half introductory Ruby and half introductory Rails, so one might > consider reading a little of the excellent books on these subjects, > offline, for a while! Rails questions are better directed to Rails mailing list, where you'll get better, faster, information. -- James Britt "Judge a man by his questions, rather than his answers." - Voltaire