问题标签 [alchemy-spree]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
333 浏览

ruby-on-rails - 如何将炼金术添加到现有的狂欢项目

我有一个正在运行的现有Spree项目。我不会尝试在项目中包含Alchemy CMS。我按照 Github Repo 上的指南进行操作。唯一的例外是我跳过了身份验证步骤,因为我已经配置了spree_auth_devise。尝试安装 Alchemy 时,bundle exec rake alchemy:install. 我收到以下错误。

错误

宝石文件

配置/初始化程序/alchemy.rb

0 投票
1 回答
489 浏览

ruby-on-rails - 将 Alchemy CMS 添加到 Spree 项目后没有路线工作

我将 Alchemy CMS 添加到之前运行正常的 Spree 项目中。但现在所有路线都不起作用。对于所有路线,我都会得到一个页面not found error。我已经完成了安装并运行了所有迁移。

错误

宝石文件

配置/路由.rb

配置/初始化程序/alchemy.rb

配置/应用程序.rb

配置/初始化程序/spree.rb

配置/炼金术/element.yml

配置/alchemy.page_layouts.yml

0 投票
0 回答
13 浏览

ruby-on-rails - 未初始化常量 Spree::Calculator::Shipping::Andreani NewShippingCalculator

创建新的运费计算器时遇到问题:

app/models/Spree/Calculator/Shipping/Andreani.rb:

配置/spree.rb

输出:/home/darthganz/Desktop/datasoftok/config/initializers/spree.rb:34:in <main>': uninitialized constant Spree::Calculator::Shipping::Andreani (NameError) from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:60:in load' 来自 /home/darthganz/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.8.1/lib /bootsnap/load_path_cache/core_ext/kernel_require.rb:60:in load' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/engine.rb:681:in block in load_config_initializer' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb :205:in instrument' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/engine.rb:680:in load_config_initializer' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/engine.rb:634:in block (2 levels) in <class:Engine>' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/engine.rb:633:in each' from /home/darthganz/ .rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/engine.rb:633:in block in <class:Engine>' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in instance_exec' 来自 /home/darthganz/.rvm/gems/ruby-3.0.2/gems /railties-6.1.4.1/lib/rails/initializable.rb:32:inrun' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in 在 /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:228 中的 run_initializers 中的block in tsort_each' from /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:350:in 块:在 /home/darthganz/ 中的 each_strongly_connected_component 中的块(2 级)中.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from' from /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:431:in each_strongly_connected_component_from' 来自 /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0 .0/tsort.rb:421:in block in each_strongly_connected_component_from' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/initializable.rb:50:in each' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/initializable.rb:50:in tsort_each_child' from /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:415:in call'来自 /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:415:in each_strongly_connected_component_from' from /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:349:in block in each_strongly_connected_component' 来自 /home/darthganz/.rvm/rubies/ruby-3.0 .2/lib/ruby/3.0.0/tsort.rb:347:in each' from /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347:in call' 来自 /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:347 :在each_strongly_connected_component' from /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:226:in tsort_each' 来自 /home/darthganz/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/tsort.rb:205:in tsort_each' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in run_initializers' 来自 /home/darthganz/.rvm/gems/ruby-3.0 .2/gems/railties-6.1.4.1/lib/rails/application.rb:391:in initialize!' from /home/darthganz/Desktop/datasoftok/config/environment.rb:5:in '来自 /home/darthganz/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.8.1/lib/ bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi' 来自 /home/darthganz/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index。 rb:92:in register' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi' 来自 /home/darthganz/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:inrequire' from /home/darthganz/.rvm/gems/ruby-3.0.2/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in 需要'来自/home/darthganz/.rvm/gems/ruby-3.0.2/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `require_relative'