I have static pages in my app. This app is running on two different domains.
I want some of the static pages to show <%=@domain%> name. All the contents are static but only the domain name is dynamic. How can I get this done in rails?
like
cache do
some content goes here and then i want to display the <%=request.domain()%>
end
With the above way: request.domain() will cached first and will be served with the same domain name ignoring which domain you are using to access this later.