Hello i have been trying to access the token value of the following hash with no avail
email.to[{:token=>"example", :host=>"respiratoryexamprep.com", :email=>"example@respiratoryexamprep.com", :full=>"example@respiratoryexamprep.com", :name=>nil}]
does it not email.to[:token]
give me the value of token?
when i do that i get this
TypeError (no implicit conversion of Symbol into Integer):
if not what is the correct way to do it. Is there any point in doing a loop when i just need one value?
Aucun commentaire:
Enregistrer un commentaire