Permalink
Browse files

Previous code attempts to link to index with product id as format

  • Loading branch information...
1 parent bbdbada commit 711ea8c1063ae4ceb22f68c08e5118917f2498be Kyle Macey committed Feb 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/3-index-pages/index-as-grid.md
@@ -7,7 +7,7 @@ Sometimes you want to display the index screen for a set of resources as a grid
index block.
index :as => :grid do |product|
- link_to(image_tag(product.image_path), admin_products_path(product))
+ link_to(image_tag(product.image_path), admin_product_path(product))
end
The block is rendered within a cell in the grid once for each resource in the
@@ -17,5 +17,5 @@ You can customize the number of colums that are rendered using the columns
option:
index :as => :grid, :columns => 5 do |product|
- link_to(image_tag(product.image_path), admin_products_path(product))
+ link_to(image_tag(product.image_path), admin_product_path(product))
end

0 comments on commit 711ea8c

Please sign in to comment.