use photos_path to generate the correct POST destination for photo uploads

This commit is contained in:
Don Park 2010-09-18 01:29:49 +08:00 committed by Daniel Grippi
parent 3457883787
commit 2d16289e46

View file

@ -9,7 +9,7 @@
element: document.getElementById('file-upload'),
params: {'album_id' : "#{@album.id}"},
allowedExtensions: ['jpg', 'jpeg', 'png'],
action: "/photos"
action: "#{photos_path}"
});
}
window.onload = createUploader;