Skip to content

Instantly share code, notes, and snippets.

@steveh
Created May 1, 2012 03:56
Show Gist options
  • Select an option

  • Save steveh/2564839 to your computer and use it in GitHub Desktop.

Select an option

Save steveh/2564839 to your computer and use it in GitHub Desktop.
<%= link_to "Admin", main_app.admin_path %>
I'm expecting main_app.admin_path to return /admin, but it returns /store/admin. Using it outside a cell, i.e. in just a partial, it works as expected.
MyApp::Application.routes.draw do
mount Spree::Core::Engine, :at => "store"
# Spree defines a route at "store/admin"
get "admin" => "admin#index"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment