For example, in config/environments/production.rb
in a Rails 3 app, there is
config.serve_static_assets = false
and many variables. How can they be all printed out as a whole (perhaps in an object, instead of specifying each one-by-one) (print out in a view, such as FooController#index), just for looking into what types of values are available and to see what they are set to?
Also, how to print out the values in the .yml
files (as a hash and/or in some config object?) and in config/initializers
, such as for
MyAppFoo::Application.config.session_store :active_record_store
I found that we can print out the content of
ActiveRecord::Base.configurations
but not
ActionController::Base.configurations
are there ways to print out all info of the MVC components?