Displaying 2 results from an estimated 2 matches for "development_url".
2008 Sep 02
3
Unable to set default_url_options[:host] for Action Mailer
I am attempting to provide ActionMailer with the request host needed to
generate a url.
Here is my code:
In config/environments/development.rb
config.action_mailer.default_url_options = { :host =>
"development_url.com" }
and in config/environments/production.rb
config.action_mailer.default_url_options = { :host =>
"production_url.com" }
When I run the above code ActionMailer fails, and tells me that I never
provided it with the request host. I think ActionMailer is a dirty
liar.
Any su...
2008 Sep 24
19
How to define request.domain in when testing
Hi,
My application relies on request.domain for doing its job. The problem I
am encountering, is that when running tests, request.domain returns
"test.host", how can I change that so that it returns "mysite.com"?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.