I currently am using:
image_tag(src)
Which displays the image using the relative path. I would like to use the full path, but don’t see how to do it from reading the docs.
Thanks!
edit:
Setting ActionController::Base.asset_host works for the application, but I also need it to work when sending an html mailer out via a rake task. Any additional suggestions?
If you want to use the full path you need to let Rails know the absolute portion of the URL. You can do this by setting the asset host, though it’s typically used to set a 3rd party asset host:
You would want to set this for each of your environments, so in
config/environments/development.rbyou might instead set ‘www.yourapp.pow’.