Nick Ginanto
Nick Ginanto

Reputation: 32120

How to know what config contains in rails

Is there a way to know what is the configuration defined in development.rb and production.rb?

there is a lot of mystery into what is set.

Is there a way to see that?

Upvotes: 2

Views: 59

Answers (1)

jethroo
jethroo

Reputation: 2124

don't know it is what you are looking for, but you can start a rails console with

> rails c

and then inspect the Application like

> <Projectname>::Application.env_config

or

> <Projectname>::Application.config    

which will print out some config hashes of your application

Upvotes: 2

Related Questions