[Ruby] refactoring/drying help
shane becker
veganstraightedge at gmail.com
Thu Oct 11 20:00:19 PDT 2007
> I don't see why you need a full name attribute in the person table
> when you already have a first name and a last name.
to clear up the existence of first_name, last_name AND full_name. i'm
pulling from existing data that isn't separated into first and last.
it's easy enough to grab the first and last word in a multi-word
name, but what if someone's name is 'brian k vaughn'? i'd lose the
stuff in the middle. so maybe i should just store the full_name in
the db, then have first_name and last_name as model methods.
More information about the Ruby
mailing list