1 Answer
1

Do you have the home controller setup in your main application? The reason lies in the _header.html.erb file where you are using the link to index action of home controller.

I guess you are using the main application's layout/template to render the engine's view. And the _header.html.erb is also part of the template that is rendering the engine's view.

The mountable Engines in rails work in a way that if you want to access the route of main application's controller/action you need to call in on main_app. So you can change the link_to line to look something like: