I think i need to determine the "request.host_with_port" in the
controller and pass it as an argument to the notifier and to the
delayed Job.
Is there a better way to do that?
On 2 Mrz., 13:30, LeonS
<leonard.stellbr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> I''ve got some domains , lets say example.com and example.de and I
want
> that the link in a ActionMailerView contains the correct localized
> host e.g. with <%= @root_url %> .
> Currently the host is set in the environment.rb with
> "config.action_mailer.default_url_options = { :host =>
> "example.com" }".
> How can I set the host dynamically and localized? I''m sending my
mails
> though a Delayed Job.
> Thanks.
>
> greetings
> LeonS
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.