There was a thread yesterday about ENV["_"] which is not available to
I got to playing around with how to find access to the
initializer_path or in this case the root_path
My question is more about why I don’t have access to what appears to
be a public method than finding the root_path.
I did this in 2.0.2 with script/console
The Rails object has a Configuration class accessible via
I have script console running and at the same time I am starring at
the code to initializer.rb
In initializer.rb is a class named Configuration. It has an accessor
# The application’s base directory.
yet when I try to access this I get an undefined method error.
NoMethodError: undefined method `root_path’ for
if I list the instance methods, root_path is listed, yet it is not
Is Configuration a singleton class?
How do I access root_path or any of the other instance methods?
Thanks in advance.