Hi,

What's your best practice about the email attribute of a registered user
in your DB. I don't want people to be able to change email.

But what's best?

1) protect the email attribute with attr_protected or attr_accessible
and suffer the pain of having to do user.email = .... everywhere in your
code and tests

2) Keep email accessible, but write a custom update_attributes that
filters the email attribute?
-- 
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to