Hi there,

Is it the case that all links in engines seem to ignore the default
Rails only_path => false option?  Every link_to in my Engine results in
links like:

<a href="http://localhost:3005/admin/articles";>Back to articles</a>

whereas the non-engine views in the same application result in links like:

<a href="/admin/articles">Back to articles</a>

This is a big problem for me because I'm using Rails full-page caching
on a site which can be accessed via either http or https, and the cache
files are getting written to disk with the full https:// which is real
ugly for what I'm trying to do.

Explicitly setting
ActionController::UrlWriter.default_url_options[:only_path] = true
doesn't seem to help anything, and I can't see anything in the Engines
plugin that's explicitly causing this.

Is this behaviour intentional, am I doing something really wrong, or is
there a configuration option I can set somewhere?

Greets,
Yossarian


_______________________________________________
Engine-Users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to