Skip to content

Accessing your Application Routes inside Upmin Admin

joncalhoun edited this page Sep 28, 2014 · 1 revision

If you want to add a link back to your main app within the Dashboard, you can't just use link_to root_path.

Upmin Admin is a Rails Engine, so root_path defaults to the root path of the engine, not your application. If you want to access your application routes, simply prefix the route with main_app like so:

link_to "Main App", main_app.root_path

Clone this wiki locally