#asset_url helper method

I think this is how all the assets helpers work by default.

https://github.com/rails/rails/blob/e826a5c749f9a4029a3b2a7e3d371498feeb9b10/actionpack/lib/action_view/asset_paths.rb#L108

Rafael Mendonça França http://twitter.com/rafaelfranca https://github.com/rafaelfranca

I haven’t had time to test but you’re saying the asset_path helper will provide the full url by default?

In console within production environment it seems to only return the path which isn’t sufficient for html emails.

If I remember correctly, asset_path will return the full URL if you set

config.action_mailer.asset_host = “http://my.assets.com

in your environment file.