From f8da0db2b7e25cb899e5e7e6f163f67758ef7978 Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Tue, 3 Jul 2012 10:32:51 -0400 Subject: [PATCH] Adding note about unauthorized.html.erb --- README.textile | 1 + 1 file changed, 1 insertion(+) diff --git a/README.textile b/README.textile index 067b7d6..2d884a2 100644 --- a/README.textile +++ b/README.textile @@ -15,6 +15,7 @@ The idea is simple. You attach a file to a Product (or a Variant of this Product * The file @views/order_mailer/confirm_email.text.erb@ is the only thing that should need customization. But since I assume you do that anyway, it doesn't hurt to do it when you're using spree_digital. The reason is that the download links are added to the confirmation email to the customer. "http://github.com/iloveitaly/spree-html-email":http://github.com/iloveitaly/spree-html-email also supports spree_digital. * A purchased product can be downloaded even if you disable the product immediately. You would have to remove the attached file in your admin section to prevent people from downloading purchased products. * File are uploaded to @rails_root/private@. Make sure it's symlinked in case you're using Capistrano. +* You must add a views/spree/digitals/unauthorized.html.erb file to present an error message to the user if they exceed the download / days limit * We use send_file to send the files on download. Yes, it goes through the entire stack right now. h2. Installation