mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Fix log_view.
This commit is contained in:
parent
e170c64fe0
commit
252c661fbc
@ -1,5 +1,4 @@
|
|||||||
$(document).ready ->
|
$(document).ready ->
|
||||||
$(".fancy").fancybox
|
$(".fancy").fancybox
|
||||||
titlePosition: "inside"
|
afterLoad: () ->
|
||||||
onComplete: (links, index) ->
|
$.post "/photos/#{this.element.attr('id')}/log_view"
|
||||||
$.get "/photos/" + $(links[index]).attr("id") + "/log_view"
|
|
||||||
|
|||||||
@ -81,15 +81,16 @@ DanBarberPhoto::Application.routes.draw do
|
|||||||
# See how all your routes lay out with "rake routes"
|
# See how all your routes lay out with "rake routes"
|
||||||
|
|
||||||
resources :categories do
|
resources :categories do
|
||||||
resources :photos
|
resources :photos do
|
||||||
member do
|
member do
|
||||||
get :log_view
|
post :log_view
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :photos do
|
resources :photos do
|
||||||
member do
|
member do
|
||||||
get :log_view
|
post :log_view
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user