In my mailer view I have a named route :

accept_user_invitation_url(@resource, :invitation_token =>

In my routes :
accept_user_invitation GET /users/invitation/accept(.:format)
{:action=>"edit", :controller=>"users/invitations"}

in development , I set
config.action_mailer.default_url_options = { :host => '' , :port
=> 3000}


I am generating a mail from a subdomain form, ( submit to POST

in the mailer view the accept_user_invitation_url is NOT using the
but rather generating the url with the current subdomain host

however with a ddebugger in mailer, before rendering , the default is
still correct....
Rails.configuration.action_mailer.default_url_options =>
{:host=>"", :port=>3000}
why the named route is not using it ?

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
To unsubscribe from this group, send email to
For more options, visit this group at

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouprubyonrails-talk @
postedFeb 2, '12 at 9:58a
activeFeb 2, '12 at 9:58a

1 user in discussion

Erwin: 1 post



site design / logo © 2022 Grokbase