How get the real path which alias path

In my rails app,I have add a alias path at apache httpd.conf like this:

alias /ckfinder /var/www/html/ckfinder

but ,how i can get the real path of '/ckfinder' in model? Thanks.

Answers


I don't believe there's any way for rails to know about apache aliases other than by reading an apache config file and interpreting it yourself.

Remember, rails can be run through other web servers too.

Why can't you just have ckfinder installed in the "public" directory of your rails app so it can always be found relative to the app?


Need Your Help

animation alpha change

objective-c ios animation png alpha

I've always worked with Flash, and it's pretty easy to change the alpha values between one frame and another. Is there a way to do this in xcode 4? I'm animating a logo and I need the first png to

Symbian: kern-exec 3 panic on RLibrary::Load

dll load symbian panic

I have troubles with dynamic loading of libraries - my code panics with Kern-Exec 3. The code is as follows: