How to check if a specific key is present in a hash or not? Technology Community › Category: Ruby on Rails › How to check if a specific key is present in a hash or not? 0 Vote Up Vote Down VietMX Staff asked 4 years ago Hash’s key? method tells you whether a given key is present or not. session.key?("user")