search for: _category

Displaying 2 results from an estimated 2 matches for "_category".

Did you mean: category
2012 Aug 13
2
Render collection of objects
Hello! I''m trying to render a template this way (below), but the object is nil at _category.html.erb file. index.html.erb <%= render @categories %> _category.html.erb <%=category.name %> error: undefined method `name'' for nil:NilClass With show.html.erb file it''s render. Thanks -- You received this message because you are subscribed to the Googl...
2006 Apr 03
8
Layout problem
...; The content in the middle td displaying the posts is working fine. In the right td i want to display all the categories. I can get the template to render to the right column with just html but i cant display any of the categories when i add the ruby code to display them. The code for the _categorylist.rhtml is below. <b>right template</b> <% for category in @categories %> <%= category.name %> <% end %> I keep getting the following error below: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error...