What’s the difference between Rails’s try and the safe navigation (&.) operator? – Andy Croll

For those who don’t know. This is also something I’ve covered on Graceful.Dev.

Both try and the safe navigation operator (&.) both provide ways to safely call methods on objects that might be nil. However, they have some key differences.

Source: What’s the difference between Rails’s try and the safe navigation (&.) operator? – Andy Croll