It should be noted that p['project'] is having the same meaning, because "" is per se slower in ruby because it tries to look for string replacements and the value function checks the return value to replace nil by '' - which wouldn't make a difference in the call to get_by_name