Displaying 1 result from an estimated 1 matches for "category_pag".
Did you mean:
category_path
2006 Jun 13
2
four days on rails - nil object when you didnt expect it
...around rails and to help along Im working
through "four days on rails" as this seems to give a good real world
example with multiple tables and relationships (the main thing I cant
work out!)
Ive got stuck. Some help would be really good here.
The controller has this code:
def list
@category_pages, @categories = paginate(:category, :per_page => 10,
:order_by -> ''category'')
end
and the view has this (just the bit thats causing the issue not all of
it)
<% for category in @categories %>
<tr>
<td><%= category["category"] %>...