@pat: Goooood point about just shoving port into the host value. @clifford: Indeed. =-) There's a definite learning opportunity here for me. Will give this more investigation shortly. Thanks for the encouragement!
-g On Fri, Feb 18, 2011 at 10:02 AM, Clifford Heath <[email protected]>wrote: > On 18/02/2011, at 9:47 AM, Gabe Hollombe wrote: > >> config.action_mailer.default_url_options = { :host => 'foo.com/bar' } >> to config/environments/<environment_name>.rb WILL properly generate urls >> in my mailers like http://foo.com/bar/sign_in as we all suspected. >> BUT, as I suspected, this is only a coincidentally workable solution >> because, if you add the :port option to the config, like this: >> config.action_mailer.default_url_options = { :host => 'foo.com/bar', >> :port => 8080 } >> then you get urls like http://foo.com/bar:8080/sign_in which is, of >> course, totally not right. >> Anyone else have any thoughts to add? >> > > That looks like an opportunity to get your name down as a Rails contributor > :). > You've done most of the investigation, and it shouldn't take much time to > find a proper fix, assuming there's not some structural clash endemic in > the > URL generation code. > > Clifford Heath. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" 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/rails-oceania?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" 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/rails-oceania?hl=en.
