I have a hash:
hash = "email_address"=>"test@example.com"
I would like to get the value from this hash which is "test@example.com" using erubis. This doesn't work:
<%
pp hash.[email_address]
%>
I have a hash:
hash = "email_address"=>"test@example.com"
I would like to get the value from this hash which is "test@example.com" using erubis. This doesn't work:
<%
pp hash.[email_address]
%>
Did you try this?
<%= pp hash["email_address"] %>
or
<%= pp hash[:email_address] %>