Re: Problem build extension spree e-commerce

58 views
Skip to first unread message

Mez

unread,
Aug 11, 2012, 6:29:43 PM8/11/12
to spree...@googlegroups.com, lope...@gmail.com
Hi,

I have a git repo, it is based on an old version, but I updated the extension to work with spree >= 1.1.2


Checkout the source code and compare with yours to see what you are missing. If you have any questions after just let me know!
Good luck!

-mez

On Wednesday, August 1, 2012 3:51:39 PM UTC+2, Guilherme Rodrigues wrote:
Hello. I'm with one problem when executed the step 5.7(http://guides.spreecommerce.com/creating_extensions.html). In my extension not metting the path: 
#lib/spree/flag_promotion_configuration.rb.

I must create the directory 'spree' and after create the file 'flag_promotion_configuration.rb' ?

If I write this in the file, as the tutorial required:

#lib/spree_flag_promotions/engine.rb
module Spree::ActiveShipping; end
 
....
 
module SpreeFlagPromotions
  class Engine < Rails::Engine
    initializer "spree.flag_promotions.preferences", :after => "spree.environment" do |app|
      Spree::FlagPromotions::Config = Spree::FlagPromotionConfiguration.new
    end
 
    ....
  end
end

And I executed:

$ rake db:migrate

Return this error:

rake aborted!
uninitialized constant Spree::FlagPromotions

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)


I believe it has anything to do with:
#lib/spree/flag_promotion_configuration.rb.
Because they do not know where to create this file is or where.

Thank you.
Reply all
Reply to author
Forward
0 new messages