On Nov 6, 2010, at 8:40 AM, Peter Booth wrote: > I'd like to configure my Hobo app so that all the embedded links to static > content (javascript, css, images) are links to a subdomain. > > Is there a single place where I can do this. I've tried searching the two > Hobo books, and also googling Rails docs, but I'm missing any mention of this. > > In other words, I'd like my generated URLs to be absolute, instead of being : > <link href="/hobothemes/clean/stylesheets/clean.css" media="all" > rel="Stylesheet" type="text/css" /> > to be > <link > href="http://subdomain.mydomain.com/hobothemes/clean/stylesheets/clean.css" > media="all" rel="Stylesheet" type="text/css" /> > > Does anyone know if this can be configured?
It should work to set ActionController::Base.asset_host to the desired value in config/environments/production.rb This will cause all the AssetHelper-generated links to prepend the setting to their URLs. --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
