The code in the view shall give the books in the database
<% @bookmark.each do |book| %>
works only for multiple rows. If i had single row, it would show error like
" undefined method `each' for #<Bookmark:0x3e2e3f0> "
What should i do to print single row also. ?
1 Answer