0

/config/environment/development.rb:

config.action_mailer.asset_host = "http://192.155.90.155:3000"

私のメール本文で私が見たいのは:

<table background="http://192.155.90.155:3000/assets/fb.png">

<table background="<%= url_for('assets/bg.jpg', :only_path => false) %>">私にエラーを与えます。

そして<table background="<%= url_for('assets/bg.jpg') %>">、予期しない結果が得られます:

<table background="assets/fb.png">

何か助けはありますか?

4

1 に答える 1

0

私は解決策を見つけました:

使用する<table background="<%= asset_path 'bg.jpg' %>">

それ以外の<table background="<%= url_for('assets/bg.jpg') %>">

于 2013-01-28T11:45:19.963 に答える