image_tag does not use the asset_host parameter that I set. Any ideas why? The only thing I can think of is to deal with the fact that this is a Mailer.
config / environment /development.rb
config.action_controller.asset_host = "http://localhost:3000"
myMailer.rb
<%= image_tag "logo.png", :style=>"margin-left:10px; padding-bottom:15px;" %>
displayed as:
<img alt="Logo" src="/images/logo.png?1303090162" style="margin-left:10px; padding-bottom:15px;" />
In the console:
> MyApp::Application.config.action_controller #<OrderedHash {… :asset_host=>"http://localhost:3000", …}>
I need an image_tag file to create the full path url because it will appear in the email.
ruby-on-rails-3 actionmailer
RyanJM Apr 21 '11 at 5:11 2011-04-21 05:11
source share