secret_token.rb 1.0 KB

1234567891011121314151617181920
  1. #---
  2. # Excerpted from "Agile Web Development with Rails",
  3. # published by The Pragmatic Bookshelf.
  4. # Copyrights apply to this code. It may not be used to create training material,
  5. # courses, books, articles, and the like. Contact us if you are in doubt.
  6. # We make no guarantees that this code is fit for any purpose.
  7. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  8. #---
  9. # Be sure to restart your server when you modify this file.
  10. # Your secret key for verifying the integrity of signed cookies.
  11. # If you change this key, all old signed cookies will become invalid!
  12. # Make sure the secret is at least 30 characters and all random,
  13. # no regular words or you'll be exposed to dictionary attacks.
  14. # You can use `rake secret` to generate a secure secret key.
  15. # Make sure your secret_key_base is kept private
  16. # if you're sharing your code publicly.
  17. Demo1::Application.config.secret_key_base = '901ca40b00a07d11b789e2696b1cab44b06f556e53d2c36416c4b26cd31d3dc827f1ec97b9dcdb209763f2d2a602340bcdc3ce548c5db6b1afd0de42320e05fb'