I need to know, from inside of a layout of a mountable engine, what path it\'s currently being mounted on. What would be the way to do it?
E.g. my routes.rb contains the
UPDATE: this probably applies to Rails 3 only!
I found the solution:
Rails.application.routes.named_routes[:backend_core].path #=> "/backend"