Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はハッシュを持っています:
hash = "email_address"=>"test@example.com"
erubis を使用して、"test@example.com" であるこのハッシュから値を取得したいと思います。これは機能しません:
<% pp hash.[email_address] %>
これを試しましたか?
<%= pp hash["email_address"] %>
また
<%= pp hash[:email_address] %>