hashThing = Hash.new{ |hash, key| hash[key] = [] }; # this declares a
hash with array values
hashThing[‘something’] << “value1” << “value”;
flash[:quick_store_hash] = hashThing;
When I run it, I get a TypeError in Controller#action. The error message
is: “can’t dump hash with default proc” and that makes no sense to me.
I’m new to ruby/rails, and would appreciate any help.
hashThing = Hash.new{ |hash, key| hash[key] = [] }; # this declares a
hash with array values
hashThing[‘something’] << “value1” << “value”;
flash[:quick_store_hash] = hashThing;
When I run it, I get a TypeError in Controller#action. The error message
is: “can’t dump hash with default proc” and that makes no sense to me.
I’m new to ruby/rails, and would appreciate any help.