Is it possible to change the default image_tag folder?
You could override image_path in ActionView::Helpers::AssetTagHelper
compute_public_path(source, 'folder under public you want to server files from')
Hi Bourre, is not recommended you change the default path because is a
default in all rack app and in the moment of request coming to the
server for the public folder him don't call the Rails app and if you
change you gonna change this functionality....
Luke Cowell wrote:
So is there a way to configure each app? As you can figure out i'm a
Are you sure you need to do this? Can you explain the reason.
image_tag will take a full path so
will use /images/myincon.png"
will use /icons/myicon.png
Further examples at