Re: [Rails] ActionMailer SITE constant

2010-01-07 Thread bill walton
Hi Ralph, On Thu, 2010-01-07 at 18:27 +0100, Ralph Shnelvar wrote: > ActionMailer is expecting the constant SITE to be initialized. > > I could put > SITE = 'http://localhost:3001' > in development.rb > > but > > what I would like to do is to set this constant programmaticly to the > current

Re: [Rails] ActionMailer SITE constant

2010-01-07 Thread steve ross
env['HTTP_HOST'] Maybe? On 1/7/10 9:27 AM, "Ralph Shnelvar" wrote: > ActionMailer is expecting the constant SITE to be initialized. > > I could put > SITE = 'http://localhost:3001' > in development.rb > > but > > what I would like to do is to set this constant programmaticly to the > curr

[Rails] ActionMailer SITE constant

2010-01-07 Thread Ralph Shnelvar
ActionMailer is expecting the constant SITE to be initialized. I could put SITE = 'http://localhost:3001' in development.rb but what I would like to do is to set this constant programmaticly to the current site. Is there a way to do this? -- Posted via http://www.ruby-forum.com/. -- You rec