diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 196105f011900ea89b815e6d751166c9df8510c2..f5ad8330c68370e8232fbd7fd4929e2b275ad1cd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -160,7 +160,7 @@ module ApplicationHelper end def image_url(source) - root_url + path_to_image(source) + root_url.sub(/#{root_path}$/,'') + path_to_image(source) end alias_method :url_to_image, :image_url end