Forum: Ruby on Rails Local path to public directory

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Seyit Caglar Abbasoglu (Guest)
on 2008-10-16 21:48
(Received via mailing list)
I was searching web for sometime but I couldn't find the answer. Is
there a
way to get the local path for public folder of a rails application. Lets
my applications name is 'depot'. I want the path to its public folder
regardless of where I put the application in the harddisk. For example

'C:\rails\depot\public' or 'D:\foo\doo\depot\public'

Is there a method/class for that?
Thx alot
Ar C. (Guest)
on 2008-10-16 21:52


solve your problem?
Seyit Caglar Abbasoglu (Guest)
on 2008-10-16 21:57
(Received via mailing list)
yep great, How I could not find such a simple answer :)

Thx alot mate.

2008/10/16 Ar Chron <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.