title: How I can check if an object is null in ruby on rails 2?
body: <p>I want to check when my object <code>@objectname</code> is not equal to null to show the values of the <code>@objectname</code> else to show that no values found. </p>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;% if (@objectname != null) then %&gt;
  </code></pre>
  
  <p>but I'm getting an error.</p>