Where is my file?

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(?))

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

···

--
Posted via http://www.ruby-forum.com/.