I just recently upgraded to 1.0.3
, and the routes.rb file in my config/routes folder seems to ignore all my custom routes.
MY routes.rb
I encountered the same error and found this solution, which solved it by prefixing main_app
, before each of my_paths/_urls
. In my case, these were links used in one of the /override.rb
files.
So, try: main_app.about_us_path
.
For me prepend did not work. for me draw did the work:
Spree::Core::Engine.routes.draw do
resources :orders, except: [:new, :create, :destroy] do
post :my_order, on: :collection
end
end
You can add new routes in the Spree using following block in routes.rb file
Spree::Core::Engine.routes.prepend do
# Your new routes
end