/config/initializers/secret_token.rb not being generated. Why not?

ruby, ruby-on-rails

Solution

The tutorial you're looking at was likely written for an older version of Rails than you're using.

`secret_token.rb` existed in Rails 3 and Rails 4.0 apps; it does not exist in Rails 4.1 apps.

It has been replaced in Rails 4.1 by the secrets.yml file:

http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml

Problem

Currently going through a rails tutorial and I need to make some modifications to `/config/initializers/secret_token.rb`, however, I can't find this file anywhere within the `initializers` directory. I am running the latest version of rails. This is the line I used in the terminal to create a rails project: ``` rails new sample_app ``` Anyone know why it isn't showing up?

Original source