bought the ROR book. I understand most of it and really like it. There
is just on thing I just dont get.
Lets take this code for example.
@products = paginate :product, :per_page => 10
As far as I understand @products should be some kinda hash or array,
with the data of the Database inside.
How can I display this array ?
One solution is to do it like this (like in the book)
<% for product in @products -%>
<% end %>
But I want to understand (!) how this works. Something like puts
@products[“title”] or puts @products[:title] which obviously doesnt
I think this would help to understand the whole concept.