traels / spree-promotion-roles-rule

Create promotionrules depending on the role the user has
BSD 3-Clause "New" or "Revised" License
5 stars 10 forks source link

uninitialized constant RolesPromotionRule (NameError) #1

Closed dankmitchell closed 9 years ago

dankmitchell commented 10 years ago

Hi,

I added this to the spree initializer file - Rails.application.config.spree.promotions.rules << RolesPromotionRule

and get the following error - uninitialized constant RolesPromotionRule (NameError) from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:593:in block (2 levels) in <class:Engine>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:ineach' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:in block in <class:Engine>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:ininstance_exec' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:in run' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:55:inblock in run_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:in each' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:inrun_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/application.rb:136:in initialize!' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /Users/danmitchell/Projects/LovePleasureStore/config/environment.rb:5:in <top (required)>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:inrequire' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:in require' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:3:inblock in

' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in new' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in
' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:in eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:200:in app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:46:inapp' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:304:in wrapped_app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:254:instart' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in start' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:55:inblock in <top (required)>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in tap' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in<top (required)>' from script/rails:6:in require' from script/rails:6:in
'

traels commented 10 years ago

Hi Dan

What version of of spree are you running, and which branch have you added to your Gemfile?

On 01/02/2014, at 22.15, Dan Mitchell notifications@github.com wrote:

Hi,

I added this to the spree initializer file - Rails.application.config.spree.promotions.rules << RolesPromotionRule

and get the following error - uninitialized constant RolesPromotionRule (NameError) from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:593:in block (2 levels) in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:ineach' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:in block in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:ininstance_exec' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:in run' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:55:inblock in run_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:in each' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:inrun_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/application.rb:136:in initialize!' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /Users/danmitchell/Projects/LovePleasureStore/config/environment.rb:5:in <top (required)>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:inrequire' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:in require' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:3:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in new' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:in eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:200:in app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:46:inapp' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:304:in wrapped_app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:254:instart' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in start' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:55:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in tap' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in' from script/rails:6:in require' from script/rails:6:in'

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT)

dankmitchell commented 10 years ago

Hi Simon,

I’m using Spree 2.0.7 which could be the problem as I see the latest branch is 2.1.

Do you have s stable version for version 2.0+ ?

traels commented 10 years ago

master branch is actually still the 2.0 version of the extension

I'll try to see if I can create the same error in a new spree install, I remember that I had alot of problems with the same kind of error when I created the extension

On 02/02/2014, at 09.48, Dan Mitchell notifications@github.com wrote:

Hi Simon,

I’m using Spree 2.0.7 which could be the problem as I see the latest branch is 2.1.

Do you have s stable version for version 2.0+ ?

Thanks Kind Regards

Dan Mitchell Founder & Front End Developer

M: 07875268905 W: www.digitalreflow.co.uk

Follow Us

This private and confidential e-mail and any attachments are intended for the above named only, and may be confidential. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Please note that any personal data contained therein is processed in accordance with the UK Data Protection Act 1998. Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.

Digital Reflow Limited. Office Address: 9 Three Crowns Road, Colchester, Essex, CO4 5AD. Registered in England at 15 Egret Crescent Colchester, Essex, CO4 5AD, Company Registration No. 8545953 VAT No. 164 886562

On 2 Feb 2014, at 05:50, Simon Traels Ravn notifications@github.com wrote:

Hi Dan

What version of of spree are you running, and which branch have you added to your Gemfile?

On 01/02/2014, at 22.15, Dan Mitchell notifications@github.com wrote:

Hi,

I added this to the spree initializer file - Rails.application.config.spree.promotions.rules << RolesPromotionRule

and get the following error - uninitialized constant RolesPromotionRule (NameError) from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:593:in block (2 levels) in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:ineach' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:in block in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:ininstance_exec' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:in run' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:55:inblock in run_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:in each' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:inrun_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/application.rb:136:in initialize!' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /Users/danmitchell/Projects/LovePleasureStore/config/environment.rb:5:in <top (required)>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:inrequire' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:in require' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:3:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in new' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:in eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:200:in app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:46:inapp' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:304:in wrapped_app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:254:instart' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in start' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:55:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in tap' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in' from script/rails:6:in require' from script/rails:6:in'

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT) — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT)

traels commented 10 years ago
Hi

I just installed a plain spree shop 2.0.9 (as 2.0.7 would not install), and I did not get the error ...

On 02/02/2014, at 09.48, Dan Mitchell notifications@github.com wrote:

Hi Simon,

I’m using Spree 2.0.7 which could be the problem as I see the latest branch is 2.1.

Do you have s stable version for version 2.0+ ?

Thanks Kind Regards

Dan Mitchell Founder & Front End Developer

M: 07875268905 W: www.digitalreflow.co.uk

Follow Us

This private and confidential e-mail and any attachments are intended for the above named only, and may be confidential. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Please note that any personal data contained therein is processed in accordance with the UK Data Protection Act 1998. Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.

Digital Reflow Limited. Office Address: 9 Three Crowns Road, Colchester, Essex, CO4 5AD. Registered in England at 15 Egret Crescent Colchester, Essex, CO4 5AD, Company Registration No. 8545953 VAT No. 164 886562

On 2 Feb 2014, at 05:50, Simon Traels Ravn notifications@github.com wrote:

Hi Dan

What version of of spree are you running, and which branch have you added to your Gemfile?

On 01/02/2014, at 22.15, Dan Mitchell notifications@github.com wrote:

Hi,

I added this to the spree initializer file - Rails.application.config.spree.promotions.rules << RolesPromotionRule

and get the following error - uninitialized constant RolesPromotionRule (NameError) from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:593:in block (2 levels) in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:ineach' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:in block in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:ininstance_exec' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:in run' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:55:inblock in run_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:in each' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:inrun_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/application.rb:136:in initialize!' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /Users/danmitchell/Projects/LovePleasureStore/config/environment.rb:5:in <top (required)>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:inrequire' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:in require' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:3:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in new' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:in eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:200:in app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:46:inapp' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:304:in wrapped_app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:254:instart' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in start' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:55:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in tap' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in' from script/rails:6:in require' from script/rails:6:in'

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT) — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT)

dankmitchell commented 10 years ago

Great, thanks Simon.

Dan

dankmitchell commented 10 years ago

Hi Simon,

Very strange!

This is my config file, any ideas?

Rails.application.config.spree.promotions.rules << RolesPromotionRule

Spree.config do |config| config.use_s3 = true config.s3_bucket ="#" config.s3_access_key = "#" config.s3_secret = "#" config.attachment_url = ":s3_eu_url" config.s3_host_alias = "s3-eu-west-1.amazonaws.com" config.attachment_path = "app/public/spree/products/:id/product/:filename" if Rails.env.development? config.s3_protocol = "https" config.currency = "GBP" config.override_actionmailer_config = true config.mails_from = "#" config.max_level_in_taxons_menu = 2 country = Spree::Country.find_by_name('United Kingdom') config.default_country_id = country.id if country.present? config.address_requires_state = false config.products_per_page = 16 config.track_inventory_levels = true config.searcher_class = LovePleasureStore::Search end

Paperclip.interpolates(:s3_eu_url) do |attachment, style| "#{attachment.s3_protocol}://#{Spree::Config[:s3_host_alias]}/#{attachment.bucket_name}/#{attachment.path(style).gsub(%r{^/}, "")}" end

Spree.user_class = "Spree::User"

Spree::PrintInvoice.config do |config| config.print_invoice_logo_path = "store/logoPDF.jpg" config.print_buttons = "invoice,packaging_slip" end

traels commented 10 years ago

Looks fine. I have my promotion add line after the configuration block but that shouldn't make any difference.

How about your gem file ?

kh Simon Træls Ravn Sent from my iPhone

On 02/02/2014, at 21.27, Dan Mitchell notifications@github.com wrote:

Hi Simon,

Very strange!

This is my config file, any ideas?


Rails.application.config.spree.promotions.rules << RolesPromotionRule

Spree.config do |config| config.use_s3 = true config.s3_bucket = "lovepleasure-production" config.s3_access_key = "AKIAIBMNZZWTZKQYNXHQ" config.s3_secret = "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" config.attachment_url = ":s3_eu_url" config.s3_host_alias = "s3-eu-west-1.amazonaws.com" config.attachment_path = "app/public/spree/products/:id/product/:filename" if Rails.env.development? config.s3_protocol = "https" config.currency = "GBP" config.override_actionmailer_config = true config.mails_from = "no-reply@lovepleasure.co.uk" config.max_level_in_taxons_menu = 2 country = Spree::Country.find_by_name('United Kingdom') config.default_country_id = country.id if country.present? config.address_requires_state = false config.products_per_page = 16 config.track_inventory_levels = true config.searcher_class = LovePleasureStore::Search end

Paperclip.interpolates(:s3_eu_url) do |attachment, style| "#{attachment.s3_protocol}://#{Spree::Config[:s3_host_alias]}/#{attachment.bucket_name}/#{attachment.path(style).gsub(%r{^/}, "")}" end

Spree.user_class = "Spree::User"

Spree::PrintInvoice.config do |config| config.print_invoice_logo_path = "store/logoPDF.jpg" config.print_buttons = "invoice,packaging_slip" end


Thanks Kind Regards

Dan Mitchell Founder & Front End Developer

M: 07875268905 W: www.digitalreflow.co.uk

Follow Us

This private and confidential e-mail and any attachments are intended for the above named only, and may be confidential. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Please note that any personal data contained therein is processed in accordance with the UK Data Protection Act 1998. Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.

Digital Reflow Limited. Office Address: 9 Three Crowns Road, Colchester, Essex, CO4 5AD. Registered in England at 15 Egret Crescent Colchester, Essex, CO4 5AD, Company Registration No. 8545953 VAT No. 164 886562

On 2 Feb 2014, at 11:25, Simon Traels Ravn notifications@github.com wrote:

Hi

I just installed a plain spree shop 2.0.9 (as 2.0.7 would not install), and I did not get the error ...

On 02/02/2014, at 09.48, Dan Mitchell notifications@github.com wrote:

Hi Simon,

I’m using Spree 2.0.7 which could be the problem as I see the latest branch is 2.1.

Do you have s stable version for version 2.0+ ?

Thanks Kind Regards

Dan Mitchell Founder & Front End Developer

M: 07875268905 W: www.digitalreflow.co.uk

Follow Us

This private and confidential e-mail and any attachments are intended for the above named only, and may be confidential. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Please note that any personal data contained therein is processed in accordance with the UK Data Protection Act 1998. Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.

Digital Reflow Limited. Office Address: 9 Three Crowns Road, Colchester, Essex, CO4 5AD. Registered in England at 15 Egret Crescent Colchester, Essex, CO4 5AD, Company Registration No. 8545953 VAT No. 164 886562

On 2 Feb 2014, at 05:50, Simon Traels Ravn notifications@github.com wrote:

Hi Dan

What version of of spree are you running, and which branch have you added to your Gemfile?

On 01/02/2014, at 22.15, Dan Mitchell notifications@github.com wrote:

Hi,

I added this to the spree initializer file - Rails.application.config.spree.promotions.rules << RolesPromotionRule

and get the following error - uninitialized constant RolesPromotionRule (NameError) from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:593:in block (2 levels) in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:ineach' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:in block in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:ininstance_exec' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:in run' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:55:inblock in run_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:in each' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:inrun_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/application.rb:136:in initialize!' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /Users/danmitchell/Projects/LovePleasureStore/config/environment.rb:5:in <top (required)>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:inrequire' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:in require' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:3:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in new' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:in eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:200:in app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:46:inapp' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:304:in wrapped_app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:254:instart' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in start' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:55:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in tap' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in' from script/rails:6:in require'
from script/rails:6:in'

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT) — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT) — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

traels commented 10 years ago

@danmitchell- remember to go create new S3 keys, a lot of people could have read them by now...

traels commented 10 years ago

Can I see your gemfile?

On 03/02/2014, at 05.17, Simon Træls Ravn cs2@cs2.dk wrote:

Looks fine. I have my promotion add line after the configuration block but that shouldn't make any difference.

How about your gem file ?

kh Simon Træls Ravn Sent from my iPhone

On 02/02/2014, at 21.27, Dan Mitchell notifications@github.com wrote:

Hi Simon,

Very strange!

This is my config file, any ideas?


Rails.application.config.spree.promotions.rules << RolesPromotionRule

Spree.config do |config| config.use_s3 = true config.s3_bucket = "lovepleasure-production" config.s3_access_key = "AKIAIBMNZZWTZKQYNXHQ" config.s3_secret = "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" config.attachment_url = ":s3_eu_url" config.s3_host_alias = "s3-eu-west-1.amazonaws.com" config.attachment_path = "app/public/spree/products/:id/product/:filename" if Rails.env.development? config.s3_protocol = "https" config.currency = "GBP" config.override_actionmailer_config = true config.mails_from = "no-reply@lovepleasure.co.uk" config.max_level_in_taxons_menu = 2 country = Spree::Country.find_by_name('United Kingdom') config.default_country_id = country.id if country.present? config.address_requires_state = false config.products_per_page = 16 config.track_inventory_levels = true config.searcher_class = LovePleasureStore::Search end

Paperclip.interpolates(:s3_eu_url) do |attachment, style| "#{attachment.s3_protocol}://#{Spree::Config[:s3_host_alias]}/#{attachment.bucket_name}/#{attachment.path(style).gsub(%r{^/}, "")}" end

Spree.user_class = "Spree::User"

Spree::PrintInvoice.config do |config| config.print_invoice_logo_path = "store/logoPDF.jpg" config.print_buttons = "invoice,packaging_slip" end


Thanks Kind Regards

Dan Mitchell Founder & Front End Developer

M: 07875268905 W: www.digitalreflow.co.uk

Follow Us

This private and confidential e-mail and any attachments are intended for the above named only, and may be confidential. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Please note that any personal data contained therein is processed in accordance with the UK Data Protection Act 1998. Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.

Digital Reflow Limited. Office Address: 9 Three Crowns Road, Colchester, Essex, CO4 5AD. Registered in England at 15 Egret Crescent Colchester, Essex, CO4 5AD, Company Registration No. 8545953 VAT No. 164 886562

On 2 Feb 2014, at 11:25, Simon Traels Ravn notifications@github.com wrote:

Hi

I just installed a plain spree shop 2.0.9 (as 2.0.7 would not install), and I did not get the error ...

On 02/02/2014, at 09.48, Dan Mitchell notifications@github.com wrote:

Hi Simon,

I’m using Spree 2.0.7 which could be the problem as I see the latest branch is 2.1.

Do you have s stable version for version 2.0+ ?

Thanks Kind Regards

Dan Mitchell Founder & Front End Developer

M: 07875268905 W: www.digitalreflow.co.uk

Follow Us

This private and confidential e-mail and any attachments are intended for the above named only, and may be confidential. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Please note that any personal data contained therein is processed in accordance with the UK Data Protection Act 1998. Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.

Digital Reflow Limited. Office Address: 9 Three Crowns Road, Colchester, Essex, CO4 5AD. Registered in England at 15 Egret Crescent Colchester, Essex, CO4 5AD, Company Registration No. 8545953 VAT No. 164 886562

On 2 Feb 2014, at 05:50, Simon Traels Ravn notifications@github.com wrote:

Hi Dan

What version of of spree are you running, and which branch have you added to your Gemfile?

On 01/02/2014, at 22.15, Dan Mitchell notifications@github.com wrote:

Hi,

I added this to the spree initializer file - Rails.application.config.spree.promotions.rules << RolesPromotionRule

and get the following error - uninitialized constant RolesPromotionRule (NameError) from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:593:in block (2 levels) in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:ineach' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:in block in class:Engine' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:ininstance_exec' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:in run' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:55:inblock in run_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:in each' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:inrun_initializers' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/application.rb:136:in initialize!' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /Users/danmitchell/Projects/LovePleasureStore/config/environment.rb:5:in <top (required)>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:inrequire' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:in require' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:3:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in new' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:in eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:200:in app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:46:inapp' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:304:in wrapped_app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:254:instart' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in start' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:55:inblock in ' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in tap' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in' from script/rails:6:in require' from script/rails:6:in'

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT) — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT) — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT)

dankmitchell commented 10 years ago

Hi Simon,

Gem file -

ruby '2.0.0'

gem 'rails', '3.2.14' gem 'jquery-rails' gem 'pg' gem 'newrelic_rpm' gem 'spree', github: 'spree/spree', branch: '2-0-stable' gem 'spree_gateway', github: 'spree/spree_gateway', branch: '2-0-stable' gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-0-stable' gem 'spree_reviews', github: 'spree/spree_reviews', branch: '2-0-stable' gem 'spree_social', github: 'spree/spree_social', branch: '2-0-stable' gem 'spree_related_products', github: 'spree/spree_related_products', branch: '2-0-stable' gem 'spree_static_content', github: 'spree/spree_static_content', branch: '2-0-stable' gem 'spree_editor', github: 'spree/spree_editor' gem 'spree_admin_bar', github: 'stefansenk/spree_admin_bar', branch:'2-0-stable' gem 'spree_contact_us', github:'jdutil/spree_contact_us', branch: '2-0-stable' gem 'spree_blogging_spree', github: 'stefansenk/spree-blogging-spree', branch: '2-0-stable' gem 'spree_sitemap', github: 'jdutil/spree_sitemap' gem 'spree_print_invoice', github: 'spree/spree_print_invoice', branch: '2-0-stable' gem 'spree_promotion_exclude_specials_rule', github: 'traels/spree-promotion-exclude-specials-rule', branch: 'master' gem 'twitter' gem 'instagram' gem 'fog'

group :production do gem 'rails_12factor' end

group :development do gem 'heroku' gem 'heroku_san' gem 'better_errors' gem 'binding_of_caller' gem 'meta_request', '~> 0.2.7' gem 'letter_opener' end

group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' gem 'zurb-foundation', '~> 4.3.2' gem 'font-awesome-rails', '~> 3.2.1.0' end

traels commented 10 years ago

Hi Dan

Took me a while to see the error, but the gem you have in your file is another of my promo rules, not the role rule :)

Sent from my iPad

On 04/02/2014, at 08.32, Dan Mitchell notifications@github.com wrote:

Hi Simon,

source 'https://rubygems.org'

ruby '2.0.0'

gem 'rails', '3.2.14' gem 'jquery-rails' gem 'pg' gem 'newrelic_rpm' gem 'spree', github: 'spree/spree', branch: '2-0-stable' gem 'spree_gateway', github: 'spree/spree_gateway', branch: '2-0-stable' gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-0-stable' gem 'spree_reviews', github: 'spree/spree_reviews', branch: '2-0-stable' gem 'spree_social', github: 'spree/spree_social', branch: '2-0-stable' gem 'spree_related_products', github: 'spree/spree_related_products', branch: '2-0-stable' gem 'spree_static_content', github: 'spree/spree_static_content', branch: '2-0-stable' gem 'spree_editor', github: 'spree/spree_editor' gem 'spree_admin_bar', github: 'stefansenk/spree_admin_bar', branch:'2-0-stable' gem 'spree_contact_us', github:'jdutil/spree_contact_us', branch: '2-0-stable' gem 'spree_blogging_spree', github: 'stefansenk/spree-blogging-spree', branch: '2-0-stable' gem 'spree_sitemap', github: 'jdutil/spree_sitemap' gem 'spree_print_invoice', github: 'spree/spree_print_invoice', branch: '2-0-stable' gem 'spree_promotion_exclude_specials_rule', github: 'traels/spree-promotion-exclude-specials-rule', branch: 'master' gem 'twitter' gem 'instagram' gem 'fog'

group :production do gem 'rails_12factor' end

group :development do gem 'heroku' gem 'heroku_san' gem 'better_errors' gem 'binding_of_caller' gem 'meta_request', '~> 0.2.7' gem 'letter_opener' end

group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' gem 'zurb-foundation', '~> 4.3.2' gem 'font-awesome-rails', '~> 3.2.1.0' end

— Reply to this email directly or view it on GitHub.

traels commented 10 years ago

Do you have it working now?

On 04/02/2014, at 21.24, Simon Træls Ravn cs2@cs2.dk wrote:

Hi Dan

Took me a while to see the error, but the gem you have in your file is another of my promo rules, not the role rule :)

Sent from my iPad

On 04/02/2014, at 08.32, Dan Mitchell notifications@github.com wrote:

Hi Simon,

source 'https://rubygems.org'

ruby '2.0.0'

gem 'rails', '3.2.14' gem 'jquery-rails' gem 'pg' gem 'newrelic_rpm' gem 'spree', github: 'spree/spree', branch: '2-0-stable' gem 'spree_gateway', github: 'spree/spree_gateway', branch: '2-0-stable' gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-0-stable' gem 'spree_reviews', github: 'spree/spree_reviews', branch: '2-0-stable' gem 'spree_social', github: 'spree/spree_social', branch: '2-0-stable' gem 'spree_related_products', github: 'spree/spree_related_products', branch: '2-0-stable' gem 'spree_static_content', github: 'spree/spree_static_content', branch: '2-0-stable' gem 'spree_editor', github: 'spree/spree_editor' gem 'spree_admin_bar', github: 'stefansenk/spree_admin_bar', branch:'2-0-stable' gem 'spree_contact_us', github:'jdutil/spree_contact_us', branch: '2-0-stable' gem 'spree_blogging_spree', github: 'stefansenk/spree-blogging-spree', branch: '2-0-stable' gem 'spree_sitemap', github: 'jdutil/spree_sitemap' gem 'spree_print_invoice', github: 'spree/spree_print_invoice', branch: '2-0-stable' gem 'spree_promotion_exclude_specials_rule', github: 'traels/spree-promotion-exclude-specials-rule', branch: 'master' gem 'twitter' gem 'instagram' gem 'fog'

group :production do gem 'rails_12factor' end

group :development do gem 'heroku' gem 'heroku_san' gem 'better_errors' gem 'binding_of_caller' gem 'meta_request', '~> 0.2.7' gem 'letter_opener' end

group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' gem 'zurb-foundation', '~> 4.3.2' gem 'font-awesome-rails', '~> 3.2.1.0' end

— Reply to this email directly or view it on GitHub.

med venlig hilsen / best regards / Mit freundlichen Grüßen

Simon Træls Ravn CS2|software +45 2267 1277 cs2@cs2.dk

(alle priser er excl. 25% moms, all prices mentioned are without 25% danish VAT)

dankmitchell commented 10 years ago

No :( Recreated the functionality ourselves but more custom for our purpose.

Wooobee commented 9 years ago

Hi, It is because your description is wrong. The Rule is ExcludeSpecialsRule.

Best Manu

traels commented 9 years ago

Finally understood all this - the issue is with spree-promotion-exclude-specials-rule where the instructions use the name of the rule from this extension. The dangers of copy/paste :(