Forum: Ruby on Rails newbie question about .titlecase of .titleize

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
058b04f7f85189a49af5458b4f7bf666?d=identicon&s=25 Mark Stroeve (markymark)
on 2006-01-03 12:43
i just started to work with ROR, and made a form with scaffolding.
I achieved to add some extra inputvalidation but i also want to add some
code that changes some specific textfields with the .titlecase /
.titleize and then stores it to the database.

I had to add the validation code to the model file, is this also the
place to add the titlecase ?
the columname of the regarding textfield is last_name(db)/lastname(ror)
This topic is locked and can not be replied to.