Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


chris salvi
chris salvi
7,584 Points

downloaded project files, bundled gems, but having trouble with secret.yml file for ODOT app

Missing secret_key_base for 'development' environment, set this value in config/secrets.yml

This seems to go against all evidence as I generated two secret key bases for development and testing, yet I cant get the server to load the app :(

Reference (note I know this info is sensitive but Im just learning and can always get new secret keys by rake secret): http://postimg.org/image/7hhhruqg9/

1 Answer

Kenan Memis
Kenan Memis
47,314 Points


Sometimes .yml files do some tricky things. I have experienced lots of times. If you believe that you are okey with the preliminary requirements (app files, bundled gems, etc.) please fill the secrets.yml file manually. Sometimes copying causes some unexpected results.

Copy your secrets.yml content to another file, clear the secrets.yml file then go step by step. First write


Then go next line by pressing enter and indent two spaces and write


On same line after a space add your secret_key_base for development(you can copy/paste the key)

Result will be the same as you did previously but some how it is working now.