Rails 4.1 secrets

We are just playing with our first 4.1 app and are getting the following
error (Missing secret_key_base for ‘production’ environment, set this
value in config/secrets.yml)
googled around a bit and are struggling a bit with this one. tried rake
secret but not sure where to put the secret etc

Steven

On 13 April 2014 11:31, Steven C. [email protected]
wrote:

We are just playing with our first 4.1 app and are getting the following
error (Missing secret_key_base for ‘production’ environment, set this
value in config/secrets.yml)
googled around a bit and are struggling a bit with this one. tried rake
secret but not sure where to put the secret etc

Does this help?

Colin

no, I dont have a secret_token.rb. am I missing something

On Sun, Apr 13, 2014 at 3:31 AM, Steven C.
[email protected] wrote:

We are just playing with our first 4.1 app and are getting the following
error (Missing secret_key_base for ‘production’ environment, set this
value in config/secrets.yml)
googled around a bit and are struggling a bit with this one. tried rake
secret but not sure where to put the secret etc

Seriously? Did you even look at ‘config/secrets.yml’ ??

Hard to imagine how it could be more plainly stated…


Hassan S. ------------------------ [email protected]

twitter: @hassa

On Sun, Apr 13, 2014 at 9:04 AM, Steven C.
[email protected] wrote:

lost now

SMH. What does that mean? Do you have an actual question?


Hassan S. ------------------------ [email protected]

twitter: @hassan

A lot of really helpful people on these forums.

I’ll bet this person went ahead and did this:

production:
secret_key_base: 12345

Someone probably could have mentioned that <%= ENV[“SECRET_KEY_BASE”] %>
loads the config from something called an “environment variable”, in
this case SECRET_KEY_BASE, which has to be defined per-server, and they
should go read up on where to define it for their particular system.

lost now