spree-guides icon indicating copy to clipboard operation
spree-guides copied to clipboard

More details on how to customize from inside an application

Open schof opened this issue 11 years ago • 0 comments

Ran into a lot of confusion when trying to walk somebody through how to do simple controller decorator in their stand alone application (NOTE: not an extension) w/Spree.

https://gist.github.com/schof/5560963

Needed to do something like:

  mount Spree::Core::Engine, :at => '/'

  Spree::Core::Engine.routes.prepend do
    namespace :admin do
      get '/products/import' => "products#import", :as => :products_import
    end
  end

which was unexpected. We should document the prepend/append stuff for when adding routes to spree namespace.

schof avatar May 11 '13 18:05 schof