Displaying 1 result from an estimated 1 matches for "thumb_50".
Did you mean:
thumb640
2007 Sep 20
1
undefined method `request' for "products":String ?
...#39;', :collection =>
@collection %>
</tbody>
view parital
_product
1: <tr id="<%= dom_id(product) %>" class="<%= cycle(''odd'', ''even'') %>">
ERROR HERE> 2: <td><%= image_tag( product.cover(:thumb_50), :class =>
''image'' ) if product.cover(:thumb_50) %></td>
model:
class Product ...
.
.
def cover(size)
assets.blank? ? nil : assets.first.public_filename(size)
end
===
Errors example 2:
undefined method `url_for'' for "categories":S...