Hello everybody: I am new and i have a small problem with ruby. I want to execute an external program and I need to pass as an argument to that program a file of the system. I''ve got that file in the public/files folder of my rails folder tree. How can I know the path to where I have my rails project? I thought this would be with RAILS_ROOT but this variable is "script/../config/.." (I have seen it with logger.debug("RAILS_ROOT is " + "#{RAILS_ROOT}"). -- Posted via http://www.ruby-forum.com/.
Apparently Analagous Threads
- storing sessions in RAILS_ROOT/tmp
- Getting started with Rake - how do I copy a directory of assets to RAILS_ROOT + "/public"
- Setting CWD to be RAILS_ROOT for fastcgi/Apache
- random exception driving me crazy: SecurityError (Insecure: can't modify array)
- RAILS_ROOT