Brand new Rails application.
Rails version 5.0.0.1, Ruby version 2.4.0preview2.
Create application "demo", run a simple scaffold generate Product, and get an error when trying to view the scaffold's overview page (base index file still loads the Welcome to Rails screen fine):
ArgumentError in ProductsController#index key must be 32 bytes:
cipher = new_cipher
cipher.encrypt
cipher.key = @secret
# Rely on OpenSSL for the initialization vector
iv = cipher.random_iv
The problem line is apparently cipher.key = @secret.
I've seen various mentions on the github repo for Rails mentioning this issue, but all implied it was now resolved in Rails 5.0.0.1
5.0.0.1
, not5.0.0.0
? I've just been reading through this issue and the associated pull requests; it looks like the bug has been fixed? I'll try to recreate it as you describe, though... – Modierails -v
I getRails 5.0.0.1
, and runninggem list rails -all
shows just 5.0.0.1 installed – Shantaegem 'rails', '~> 5.0.0', '>= 5.0.0.1'
– Shantae