Right now I\'m using this which works for the development host, but I have to manually change the {:host => \"\"} code when I move to production.
config.action_mailer.default_url_options = { :host => "your host" }
for instance your host localhost:3000
you can put this in test.rb, development.rb, production.rb files host could be different from environment to environment