how to get key using value params rails code example Example: how to access hash value ruby my_hash["key"] #=> "value"