Forum: Ruby on Rails Local path to public directory

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B6ac054c97196dfb15a3486135299466?d=identicon&s=25 Seyit Caglar Abbasoglu (Guest)
on 2008-10-16 19: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
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
D188e591eac11021329b8821a5f954c7?d=identicon&s=25 Ar Chron (railsdog)
on 2008-10-16 19:52
Does:

 RAILS_ROOT+'/public'

solve your problem?
B6ac054c97196dfb15a3486135299466?d=identicon&s=25 Seyit Caglar Abbasoglu (Guest)
on 2008-10-16 19:57
(Received via mailing list)
yep great, How I could not find such a simple answer :)

Thx alot mate.

2008/10/16 Ar Chron <rails-mailing-list@andreas-s.net>
This topic is locked and can not be replied to.