[Rails] Re: Rails and asset hosts with SSL
On Thursday, March 7, 2013 11:45:22 AM UTC+1, ngw wrote:
CUT
Sorry for the formatting
config.action_controller.asset_host = Proc.new { |source, request=nil|
if request && request.ssl?
else
"http://assets#{ ( source.length % 4 ) + 1 }.staging.foobar.it"
end
}
Hope it's more clear. It's bascially copied from the docs :)
ngw
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/__XJh0sPS4cJ.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home