search for: assets1

Displaying 1 result from an estimated 1 matches for "assets1".

Did you mean: assets
2008 Jun 13
1
asset_host and ssl pages problem
...assests from the app server and when it is not https serve the assets from the assets server. ActionController::Base.asset_host = Proc.new { |source, request| if request.ssl? "#{request.protocol}#{request.host_with_port}" # Disable asset hosting. else "#{request.protocol}assets1.example.com" # Use asset host. end } but i always get this error when navigating to any page Showing layouts/admin.html.erb where line #8 raised: You have a nil object when you didn''t expect it! The error occurred while evaluating nil.ssl? Extracted source (around line #8): 5: &...