From 2d16289e46976ee72c303310b9c2851bbaaf8616 Mon Sep 17 00:00:00 2001 From: Don Park Date: Sat, 18 Sep 2010 01:29:49 +0800 Subject: [PATCH] use photos_path to generate the correct POST destination for photo uploads --- app/views/photos/_new_photo.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/photos/_new_photo.haml b/app/views/photos/_new_photo.haml index f6777fa4a..0f1e423fb 100644 --- a/app/views/photos/_new_photo.haml +++ b/app/views/photos/_new_photo.haml @@ -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;