Where is my file?

R

Ralph Shnelvar

[Note: parts of this message were removed to make it a legal post.]

I have a file whose name is
f:\Ralph-Rails-Apps\myproject\public\documentation\marketing\myproject-Upgrade-and-Update-Policy.htm
on my Windows machine

I have attempted to open this file (which I know exists) in my controller using a variety of names to no avail.
/public/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm
public/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm
/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm
documentation/marketing/myproject-Upgrade-and-Update-Policy.htm


How can I open this file in both my development environment (Windows & webrick) and on my server (Linux abd Apache(?))
 
S

Sniper Abandon

try this in your application_controller

Rails.root+"public/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm"

there should be some best way than this



Regards
Thaniyarasu
Castkerock Research
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,293
Latest member
Hue Tran

Latest Threads

Top