Make URLs work properly in Rails mailers and controllers.