Hello guys, how do i shorted a link like ```/spree...
# support
j
Hello guys, how do i shorted a link like
Copy code
/spree/demo/show
to something like
Copy code
/demo
the routes looks like:
Copy code
namespace :spree do
    get 'demo/show'
  end
e
something like
get "/demo", to: "spree/demo#show"
should do the job, but there are also options that you can provide to namespace which might better apply to you case, see e.g. https://api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Scoping.html#method-i-namespace
j
Ah, thank you, I was actually doing the same, I realised the error i was making was i was putting the line inside the namespace block. Thank you.
🙌 1