Adding Routes to Rails' Spree E-Commerce

前端 未结 3 1233
别跟我提以往
别跟我提以往 2020-12-05 15:33

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

         


        
3条回答
  •  盖世英雄少女心
    2020-12-05 16:03

    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
    

提交回复
热议问题