Forum: Ruby on Rails Rails 4.1 secrets

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C70049ca66394c91b6526ea7482891e3?d=identicon&s=25 Steven Cahill (Guest)
on 2014-04-13 12:33
(Received via mailing list)
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
4c6bde00168d595053c09aac7e487f8e?d=identicon&s=25 Colin Law (Guest)
on 2014-04-13 13:01
(Received via mailing list)
On 13 April 2014 11:31, Steven Cahill <steven@yorkshirebroadband.com>
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?
http://guides.rubyonrails.org/upgrading_ruby_on_ra...

Colin
C70049ca66394c91b6526ea7482891e3?d=identicon&s=25 Steven Cahill (Guest)
on 2014-04-13 14:41
(Received via mailing list)
no, I dont have a secret_token.rb. am I missing something
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2014-04-13 17:19
(Received via mailing list)
On Sun, Apr 13, 2014 at 3:31 AM, Steven Cahill
<steven@yorkshirebroadband.com> 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 Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassa
C70049ca66394c91b6526ea7482891e3?d=identicon&s=25 Steven Cahill (Guest)
on 2014-04-13 18:05
(Received via mailing list)
lost now
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2014-04-13 18:39
(Received via mailing list)
On Sun, Apr 13, 2014 at 9:04 AM, Steven Cahill
<steven@yorkshirebroadband.com> wrote:
> lost now

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

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
E838b8e7c092c0fefd2d579d93887c0d?d=identicon&s=25 Ed Halferty (edhalferty)
on 2014-05-29 21:32
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.
This topic is locked and can not be replied to.