KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is a best practice? To use try or use rescue ? user.try(:email) VS user.email rescue nil post.try(:comments).try(:first).try(:author) VS post.comments.first.author rescue nil Is there any difference in using any of these?
Tags (comma-separated)
Save Edits
Cancel