Marnen Laibow-Koser wrote:
[...]
> Don't save your no-reply e-mail address to the DB, then. Just leave the 
> e-mail field blank in the DB, and use something like
> 
> @user.email || default_email
> 
> where you need it in your app.  Right now, you are saving bogus data to 
> your DB -- and what happens if your no-reply address changes?

It has just occurred to me that there's one scenario in which I *would* 
recommend saving the default address.  If you want a record of each 
message exactly as it went out -- including the no-reply address used 
*at the time*, even if it's obsolete -- then you should save the default 
address to the DB.

In almost any other case, this behavior is Plain Wrong. (Yes, that's a 
technical computer science term. :) )

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to