1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Fix log_view.

This commit is contained in:
Dan Barber 2014-03-07 14:04:34 +00:00
parent e170c64fe0
commit 252c661fbc
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,4 @@
$(document).ready ->
$(".fancy").fancybox
titlePosition: "inside"
onComplete: (links, index) ->
$.get "/photos/" + $(links[index]).attr("id") + "/log_view"
afterLoad: () ->
$.post "/photos/#{this.element.attr('id')}/log_view"

View File

@ -81,15 +81,16 @@ DanBarberPhoto::Application.routes.draw do
# See how all your routes lay out with "rake routes"
resources :categories do
resources :photos
member do
get :log_view
resources :photos do
member do
post :log_view
end
end
end
resources :photos do
member do
get :log_view
post :log_view
end
end