when an event binding is triggered, "data" variable is returned as a String. I actually had to manipulate it in order to cast it into a Hash type : **data.gsub!('":"','"=>"')** **data = eval(data)** makes sense to have the gem cast it into a Hash...
when an event binding is triggered, "data" variable is returned as a String. I actually had to manipulate it in order to cast it into a Hash type :
data.gsub!('":"','"=>"')
data = eval(data)
makes sense to have the gem cast it into a Hash...