title: Rails 3 - Object.try syntax
body: <p>How would I avoid nil checks using Object.try for the following?</p>
  
  <pre><code>&lt;%= image_tag(PeriodState.where("sla_id = ?", sla.id).last.state.image_file) %&gt;
  </code></pre>
  
  <p>I've tried .try many different ways, but still receive errors, so my syntax is off.  Thanks in advance!</p>