use photos_path to generate the correct POST destination for photo uploads
This commit is contained in:
parent
3457883787
commit
2d16289e46
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue