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 say 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

Does:

RAILS_ROOT+'/public'

solve your problem?

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

Thx alot mate.