:-[] :-|| Vivek Khokhar rambles here :-O :-[]

July 26, 2007

RAILS_ROOT

Filed under: Ruby, Rails — Vivek Khokhar @ 1:38 am

RAILS_ROOT gives you relative path within the applications it works fine as far as you need the path within rails application.

How about getting absolute path to rails folder?

I found one way, and thats from the ENV hash.

You can use ENV[’PWD’] to find absolute path to the rails folder.
Any other ways ??

*Update 4th Oct 2007*

Dir.pwd is a better way

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress