Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

More details on how to customize from inside an application #116

Open
schof opened this issue May 11, 2013 · 0 comments
Open

More details on how to customize from inside an application #116

schof opened this issue May 11, 2013 · 0 comments

Comments

@schof
Copy link
Contributor

schof commented May 11, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant