Jérémy Lannes
04/18/2023, 4:02 PMkennyadsl
Jérémy Lannes
04/18/2023, 4:06 PMkennyadsl
Jérémy Lannes
04/18/2023, 4:08 PMkennyadsl
/admin
but /
doesn’t render anything with no new lines in the production logs?Jérémy Lannes
04/18/2023, 4:13 PMkennyadsl
/
in the logsJérémy Lannes
04/18/2023, 4:14 PMJérémy Lannes
04/18/2023, 4:16 PMkennyadsl
Jérémy Lannes
04/18/2023, 4:17 PM2023-04-18T16:14:53.218988+00:00 heroku[router]: at=info method=GET path="/store" host=<http://damp-plateau-87939.herokuapp.com|damp-plateau-87939.herokuapp.com> request_id=06904ed8-3dd5-4d2d-83dc-96d43897518c fwd="88.172.57.6" dyno=web.1 connect=0ms service=93ms status=200 bytes=9284 protocol=https
2023-04-18T16:14:53.127630+00:00 app[web.1]: I, [2023-04-18T16:14:53.127551 #2] INFO -- : [06904ed8-3dd5-4d2d-83dc-96d43897518c] Started GET "/store" for 88.172.57.6 at 2023-04-18 16:14:53 +0000
2023-04-18T16:14:53.128379+00:00 app[web.1]: I, [2023-04-18T16:14:53.128340 #2] INFO -- : [06904ed8-3dd5-4d2d-83dc-96d43897518c] Processing by HomeController#index as HTML
2023-04-18T16:14:53.215790+00:00 app[web.1]: I, [2023-04-18T16:14:53.215705 #2] INFO -- : [06904ed8-3dd5-4d2d-83dc-96d43897518c] Rendered home/index.html.erb within layouts/storefront (Duration: 27.3ms | Allocations: 4134)
2023-04-18T16:14:53.218438+00:00 app[web.1]: I, [2023-04-18T16:14:53.218369 #2] INFO -- : [06904ed8-3dd5-4d2d-83dc-96d43897518c] Rendered layout layouts/storefront.html.erb (Duration: 30.0ms | Allocations: 5205)
2023-04-18T16:14:53.218657+00:00 app[web.1]: I, [2023-04-18T16:14:53.218630 #2] INFO -- : [06904ed8-3dd5-4d2d-83dc-96d43897518c] Completed 200 OK in 90ms (Views: 16.4ms | ActiveRecord: 29.3ms | Allocations: 10033)
2023-04-18T16:14:53.347079+00:00 app[web.1]: I, [2023-04-18T16:14:53.346995 #2] INFO -- : [38854ffb-c0e2-4161-9ba7-ad5aa80c54ec] Started GET "/cart_link" for 88.172.57.6 at 2023-04-18 16:14:53 +0000
2023-04-18T16:14:53.348035+00:00 app[web.1]: I, [2023-04-18T16:14:53.347982 #2] INFO -- : [38854ffb-c0e2-4161-9ba7-ad5aa80c54ec] Processing by StoreController#cart_link as */*
2023-04-18T16:14:53.366413+00:00 app[web.1]: I, [2023-04-18T16:14:53.366308 #2] INFO -- : [38854ffb-c0e2-4161-9ba7-ad5aa80c54ec] Completed 200 OK in 18ms (Views: 10.9ms | ActiveRecord: 3.5ms | Allocations: 3295)
2023-04-18T16:14:53.366611+00:00 heroku[router]: at=info method=GET path="/cart_link" host=<http://damp-plateau-87939.herokuapp.com|damp-plateau-87939.herokuapp.com> request_id=38854ffb-c0e2-4161-9ba7-ad5aa80c54ec fwd="88.172.57.6" dyno=web.1 connect=1ms service=22ms status=200 bytes=1296 protocol=https
2023-04-18T16:14:53.656022+00:00 heroku[router]: at=info method=GET path="/assets/application-37f365cbecf1fa2810a8303f4b6571676fa1f9c56c248528bc14ddb857531b95.js" host=<http://damp-plateau-87939.herokuapp.com|damp-plateau-87939.herokuapp.com> request_id=eb69345f-5900-4fd0-9653-d1b3aafe76db fwd="88.172.57.6" dyno=web.1 connect=0ms service=2ms status=200 bytes=323 protocol=https
2023-04-18T16:14:53.660969+00:00 heroku[router]: at=info method=GET path="/assets/turbo.min-f309baafa3ae5ad6ccee3e7362118b87678d792db8e8ab466c4fa284dd3a4700.js" host=<http://damp-plateau-87939.herokuapp.com|damp-plateau-87939.herokuapp.com> request_id=db45f616-22a7-434f-8bde-ff93399c4948 fwd="88.172.57.6" dyno=web.1 connect=0ms service=3ms status=200 bytes=22749 protocol=https
2023-04-18T16:14:53.671174+00:00 heroku[router]: at=info method=GET path="/assets/stimulus-loading-1fc59770fb1654500044afd3f5f6d7d00800e5be36746d55b94a2963a7a228aa.js" host=<http://damp-plateau-87939.herokuapp.com|damp-plateau-87939.herokuapp.com> request_id=f2161e80-0672-4de6-b945-19899bdcd38c fwd="88.172.57.6" dyno=web.1 connect=0ms service=1ms status=200 bytes=1202 protocol=https
2023-04-18T16:14:53.663079+00:00 heroku[router]: at=info method=GET path="/assets/stimulus.min-d03cf1dff41d6c5698ec2c5d6a501615a7a33754dbeef8d1edd31c928d17c652.js" host=<http://damp-plateau-87939.herokuapp.com|damp-plateau-87939.herokuapp.com> request_id=118db296-c3e5-4575-ae4f-af6b750b0d19 fwd="88.172.57.6" dyno=web.1 connect=0ms service=1ms status=200 bytes=10664 protocol=https
kennyadsl
/store
?Jérémy Lannes
04/18/2023, 4:19 PMkennyadsl
kennyadsl
/cart_link
in the logs that are not under /store
Jérémy Lannes
04/18/2023, 4:21 PMJérémy Lannes
04/18/2023, 4:22 PMkennyadsl
get "store", to: "home#index"
you should do
mount Spree::Core::Engine, at: '/store'
kennyadsl
Jérémy Lannes
04/18/2023, 4:23 PMkennyadsl
get "store", to: "home#index"
and see what happens?kennyadsl
Jérémy Lannes
04/18/2023, 4:24 PMkennyadsl
Jérémy Lannes
04/18/2023, 4:28 PMJérémy Lannes
04/18/2023, 4:28 PMkennyadsl
/
instead of /store
kennyadsl
namespace :store do
# your routes here
end
This will add the /store
in front of all of them.Jérémy Lannes
04/18/2023, 4:29 PMkennyadsl
Jérémy Lannes
04/18/2023, 4:33 PMJérémy Lannes
04/18/2023, 4:33 PMkennyadsl
Jérémy Lannes
04/28/2023, 1:35 PMchristopher patterson
05/18/2023, 4:54 AM