Unfortunately, my email is using helper methods that are also used
throughout the application, so I don't want to hardcode or pass around a
host variable everywhere (because there are a lot of URLs being
generated). I thought the ActionMailer::Base.default_url_options[:host]
would help but it doesn't seem to work inside the scope of helper
methods.
Ryan Waldron wrote:
> Use the :host option to make it build the whole URL, like this:
>
> url_for( {:host =>'customerdomain.com', :controller => 'page', :id => 1
> } )
>
> On Sun, Jan 18, 2009 at 2:57 PM, Conrad Chu <
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---