ArgumentError key must be 32 bytes

I create new application in localhost
Affter run rails generate controller StaticPages home help
I navigate to http://localhost:3000/static_pages/home
1 Error response .
Help me fix please ! thanks all

ArgumentError in StaticPagesController#home
key must be 32 bytes
Extracted source (around line #72):

70 cipher = new_cipher
71 cipher.encrypt
72 cipher.key = @secret
74 # Rely on OpenSSL for the initialization vector
75 iv = cipher.random_iv

Rails.root: /home/nhattrung/Working/sample_app

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs