Also, there is the RAILS_ROOT variable that helps you find your way from the rails root directory no matter where the project is.
On Sat, May 31, 2008 at 10:30 PM, pcrawfor <[EMAIL PROTECTED]> wrote: > > Hi, > > You will either need to put them in a folder (or directly in) the > public folder OR create a controller that can serve the files out > using a send_file method might also work but in general files you want > to provide go under the public folder (eg. images in public/images). > > Once a file is in public the relative path would be /file_name or if > it is in a sub-folder (eg. images) /images/file_name. > > I think that covers the basics... > > Paul Crawford > > On May 30, 9:52 am, SurviveStyle5 <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm pretty new to Ruby on Rails and web development in general. I have > > a question and was wondering if anyone could help me out. > > Right now I have some .jar files that are embedded in a web page > > ala... > > > > <Applet code="something.class" > > archive="pluginLib-jre1.6.0_05.jar,some.jar,another.jar" > > width="1200" height="480" MAYSCRIPT=true > > > > > ...yadda yadda yadda.... > > > > </Applet> > > > > These work fine in a normal html page (locally, no webserver > > required). When i attempt to embed them within a rails page it cannot > > seem to find the path to the .jar files. I exported the Dir::pwd and i > > checked out Rails ENV and started copying the jar files everywhere but > > it still never seemed to find it it... am I missing something? > > Is there something special i have to do to get rails to recognize > > this? what is my loadpath/where should i be putting these .jar files? > > > > Thanks for the help > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---