Stephan Meier wrote:
> Marnen Laibow-Koser wrote:
>> Stephan Meier wrote:
>>> I simple want to set a default email address if the user has no one 
>>> entered.
>> 
>> How would this be of any use at all?  If a user has no e-mail address, 
>> just leave the field blank rather than polluting it with bogus data.
>> Or is there something I don't understand here?
>> 
>> Best,
>> --
>> Marnen Laibow-Koser
>> http://www.marnen.org
>> [email protected]
> 
> The Email Address is simple for the sender field to personalize the 
> emails.
> But if the user dont want this behavior he can leave the field blank and 
> we save our no-reply email address... :)

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?

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