title: Rendering issue in views in ruby on rails
body: <p>The code in the view shall give the books in the database</p>
  
  <pre><code>&lt;% @bookmark.each do |book| %&gt; 
  </code></pre>
  
  <p>works only for multiple rows. If i had single row, it would show error like</p>
  
  <pre><code>" undefined method `each' for #&lt;Bookmark:0x3e2e3f0&gt; "
  </code></pre>
  
  <p>What should i do to print single row also. ?</p>