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 ->
|
||||
$(".fancy").fancybox
|
||||
titlePosition: "inside"
|
||||
onComplete: (links, index) ->
|
||||
$.get "/photos/" + $(links[index]).attr("id") + "/log_view"
|
||||
afterLoad: () ->
|
||||
$.post "/photos/#{this.element.attr('id')}/log_view"
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user