Wednesday, April 9, 2008

Missing host to link to! Please provide :host parameter or set default_url_options[:host]

When using a link_to or url_for in an ActionMailer and you need to set the host.

In production.rb or the appropriate env config file.

config.action_mailer.default_url_options = { :host => 'www.example.com' }

5 comments:

Anonymous said...

Good for people to know.

Anonymous said...

thanks!

Ryan said...

Works in Rails 2.3.5

Thanks!

Anonymous said...

Thanks, I needed this in my test.rb environment file to get my specs to work.

Anonymous said...

With many in South Korea being restricted phrases of|when it comes to|by way of} visiting physical casinos, stay supplier video games are the following 우리카지노 smartest thing. Delivered by particular software program suppliers, video games function pleasant and fair dealers. Such video games are streamed stay day and evening, with SpinCasino being one of the best websites for stay titles. Jeju Sun Hotel and Casino is situated in the heart of Jeju-si and presents gamers with completely different gaming choices. Foreigners can simply prepare VIP accommodations should they need to play in a personal room. The hotel additionally presents excellent eating choices that function conventional Korean fare and in addition Japanese and Chinese cuisines.