I'm currently developing a Rails Application with a large set of engines.
I have some paths to Engines root-path stored in a database.
However, if I try to link to them using the value from the database (it's stored in the 'root_path'-Field) and the link_to helper in the view I don't get the correct link.
Here's an example (assume that the root_path in the database is currently foo_engine.bar_path)
- @engines.each do |engine|
= link_to engine.name, engine.root_path
instead of:
http://localhost:3000/foo_engine.bar_path
I get
http://localhost:3000/current_engine/foo_engine.bar_path
Thank you in advance
Philipp
rake routesin the terminal and post the result?