diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-18 13:39:31 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-18 13:39:31 -0600 |
| commit | 907410fdd85f2277993d3bf24a1fb02ef3423e60 (patch) | |
| tree | 16bf89e727cdd8890c75bd8d770ad008044c327b /app/controllers/admin | |
| parent | 2e5bdcb7d0544c685611dc409ea8c35e8f7acce3 (diff) | |
add page to display individual photo.
Diffstat (limited to 'app/controllers/admin')
| -rw-r--r-- | app/controllers/admin/photos_controller.rb | 11 |
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 |
