Local path to public directory


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




solve your problem?


yep great, How I could not find such a simple answer :slight_smile:

Thx alot mate.

2008/10/16 Ar Chron removed_email_address@domain.invalid