Test Account
09/27/2022, 7:43 AMuninitialized constant Spree::HomeController Did you mean? Spree::HomeControllerDecorator
when going to https://localhost:3000/marketplace --
# config/routes.rb
mount Spree::Core::Engine, at: "/marketplace"
get "/marketplace", to: "spree/home#index"
--
# rails routes
spree /marketplace Spree::Core::Engine
marketplace GET /marketplace(.:format) spree/home#index
elia
09/27/2022, 9:26 AMTest Account
09/27/2022, 11:10 AMelia
09/27/2022, 11:11 AMSpree::HomeController
was part of the legacy solidus_frontend
, currently a new install will use solidus_starter_frontend
and will add it to the rails app itself without the Spree::
namespaceelia
09/27/2022, 11:11 AMls app/controllers
should clarify the situationTest Account
09/27/2022, 11:16 AMelia
09/27/2022, 11:17 AM_decorator.rb
filesTest Account
09/27/2022, 11:17 AMsolidus_starter_frontend
? I'm using Propshaft instead of Sprockets and the two seem to be conflicting ☺️Test Account
09/27/2022, 11:18 AMsolidus_frontend
👍elia
09/27/2022, 11:19 AMTest Account
09/27/2022, 11:21 AMsolidus_starter_frontend
or solidus_frontend
🙂Test Account
09/27/2022, 11:21 AMsolidus_frontend
install script and manually apply the applicable steps or something?elia
09/27/2022, 11:22 AMgem install solidus_frontend
gem open solidus_frontend
should open the gem dir in your editor without adding it to the bundleTest Account
09/27/2022, 11:22 AMTest Account
09/27/2022, 12:13 PMNoMethodError in Spree::Home#index: undefined method 'permalink' for nil:NilClass
?
solidus_frontend/app/controllers/spree/taxons_controller.rb
contains:
load_taxon
@taxon = Spree::Taxon.find_by!(permalink: params[:id])
end
elia
09/27/2022, 12:13 PMTest Account
09/27/2022, 12:15 PMTest Account
09/27/2022, 12:15 PMelia
09/27/2022, 12:16 PMAndres Bernardi
09/30/2022, 1:15 AMsolidus_starter_frontend
and I have the file app/controllers/home_controller.rb
but it keeps failing. I had to change the root to: 'home#index'
to make it work (instead of copying the SolidusFrontend's HomeControllerelia
09/30/2022, 8:20 AMAndres Bernardi
09/30/2022, 9:02 AMActionController::UrlGenerationError in Spree::Admin::UserSessionsController#create
No route matches {:action=>"index", :controller=>"home"}
Backtrace:
actionpack (6.1.7) lib/action_dispatch/journey/formatter.rb:44:in `path'
actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:823:in `url_for'
actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:270:in `call'
actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:213:in `call'
actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:326:in `block in define_url_helper'
devise (4.8.1) lib/devise/controllers/helpers.rb:182:in `signed_in_root_path'
devise (4.8.1) lib/devise/controllers/helpers.rb:216:in `after_sign_in_path_for'
solidus_auth_devise (2.5.5) lib/controllers/backend/spree/admin/user_sessions_controller.rb:20:in `block (2 levels) in create'
actionpack (6.1.7) lib/action_controller/metal/mime_responds.rb:214:in `respond_to'
solidus_auth_devise (2.5.5) lib/controllers/backend/spree/admin/user_sessions_controller.rb:17:in `create'
The signed_in_root_path(resource_or_scope)
where resource_or_scope
is Spree::User (the admin) returns root_path
elia
09/30/2022, 9:13 AMelia
09/30/2022, 9:15 AMgem "solidus_auth_devise", "< 2.5.5"
in your gemfileAndres Bernardi
09/30/2022, 9:36 AMelia
09/30/2022, 9:56 AM