Victor Martin wrote:
> Frederick Cheung wrote:
> 
>> What the current directory is might depend on how you start the app,
>> but in general it is the top level of your app. Either chdir to the
>> folder containing your binary, use an absolute path or specify the
>> path relative to the current directory.
>> 
>> 
>> Fred
> 
> Oh, I feel stupid. I just ran a "ls" command and it's just as you say, 
> it's in the top level.

File.dirname(__FILE__) is great for constructing absolute paths on the 
fly.

> 
> Thanks!
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to