how to use key name as variable from hash ruby code example Example: rails hash key variable id = 'some' { id => 'value' } # { 'some' => 'value' }