Last active
January 2, 2016 01:09
-
-
Save HoyaBoya/8228360 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spree::Core::Engine.routes.draw do | |
namespace :api, defaults: { format: 'json' } do | |
resources :orders do | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This belongs in routes.rb for a Rails app that uses Spree.....forgetting only:[] in resources :orders will change the order of the routes and the /orders/mine route that is in spree/api will not longer map to the right action in the OrdersController (will go to /orders/show#id=mine).