[LRUG] Form objects is Ruby
kawsper at gmail.com
Fri Jul 24 04:28:11 PDT 2015
self.password_digest = calculate_password_digest(password)
Phone: (+45) 42 42 42 74 or (+44) 77 07 12 17 81
Mail: kaspergrubbe at gmail.com
On Fri, Jul 24, 2015 at 12:17 PM, Michael Pavling <pavling at gmail.com> wrote:
> On 24 Jul 2015 11:20, "Kasper Grubbe" <kawsper at gmail.com> wrote:
> > One of the purest forms of this that I have found is the
> "Password-change" use case. Because it deals with virtual fields as well.
> So lets say you have a User-model, and that model have a password-field
> that needs to be changed.
> > The database would look like this:
> > User
> > id
> > username
> > password
> > But what the user most often is presented with is these fields:
> > Current password
> > New password
> > New password confirmation
> > So you have a case where the interface doesn't match the structure of
> your database.
> Hopefully the database has "password_hash" or similar, rather than
> "password" ;-)
> Chat mailing list
> Chat at lists.lrug.org
> Archives: http://lists.lrug.org/pipermail/chat-lrug.org
> Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org
> List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chat