max radin wrote:
> Robert
> You are correct. This is plain Ruby class as I am learning the basics
> but even so, under Rails, how can I display document_root?
> If there a config variable I can display?
> thanks

For Rails apps you have Rails.root which give you the root of the Rails 
project. The actual web server document root would then be 
"#{Rails.root}/public"
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to