summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-10-13 13:18:52 -0600
committermo khan <mo@mokhan.ca>2014-10-13 13:18:52 -0600
commit2d92ea754a580e67f69928404c20c616d034dfc9 (patch)
treeeb6fe6f365ce43c3e2f46153b509d9753d268050 /app/controllers/admin
parent2575f945ef2f24bb2e6f0bcd3cc54458f45712dc (diff)
add product details page.
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/products_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/admin/products_controller.rb b/app/controllers/admin/products_controller.rb
index 91e6be20..28c3c55e 100644
--- a/app/controllers/admin/products_controller.rb
+++ b/app/controllers/admin/products_controller.rb
@@ -8,5 +8,9 @@ module Admin
def index
@products = @product_api.search(params[:q])
end
+
+ def show
+ @product = @product_api.find(params[:id])
+ end
end
end