We have a rails 3 application (3.2.12) on which we wish to implement full page caching (Using ActionController caches_page
)
We are using _url
url helpers everywhere in the application, and this is causing the links in all of the cached pages (in production) to have the domain: http://0.0.0.0/
We have canonical links on several pages that require the domain in the links, so we can't easily switch to _path
url helpers.
I've scoured Google and StackOverflow and can't find an answer for this.
I'm not passing in any options to caches_page
The pages are essentially like so:
class SomeController < ApplicationController
caches_page :index, :other_action
def index
end
def other_action
end
end
How do I make the links in the generated cache pages have the correct domain?