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(?)) -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Try
"#{Rails.root}/public/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm"
or
"#{RAILS_ROOT}/public/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm"
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
On 9 December 2010 12:20, Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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(?))What do you mean by ''open this file in my controller''? Show us some code. If you are trying to view it in a browser or redirect to it, it would be the third one (/documentation/....). Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
"#{RAILS_ROOT}/public/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm"
On Thu, Dec 9, 2010 at 5:59 PM, Victor Cisneiros
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:
> Try
>
>
"#{Rails.root}/public/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm"
>
> or
>
>
>
"#{RAILS_ROOT}/public/documentation/marketing/myproject-Upgrade-and-Update-Policy.htm"
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.