summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-18 13:39:31 -0600
committermo khan <mo@mokhan.ca>2014-05-18 13:39:31 -0600
commit907410fdd85f2277993d3bf24a1fb02ef3423e60 (patch)
tree16bf89e727cdd8890c75bd8d770ad008044c327b /app/controllers/admin
parent2e5bdcb7d0544c685611dc409ea8c35e8f7acce3 (diff)
add page to display individual photo.
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/photos_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/admin/photos_controller.rb b/app/controllers/admin/photos_controller.rb
new file mode 100644
index 00000000..c863aed2
--- /dev/null
+++ b/app/controllers/admin/photos_controller.rb
@@ -0,0 +1,11 @@
+module Admin
+ class PhotosController < AdminController
+ def index
+ @photos = Photo.all
+ end
+
+ def show
+ @photo = Photo.find(params[:id])
+ end
+ end
+end