Is it possible to titleize in IRB?
Posted
by Trip
on Stack Overflow
See other posts from Stack Overflow
or by Trip
Published on 2010-06-14T16:38:17Z
Indexed on
2010/06/14
16:42 UTC
Read the original article
Hit count: 182
ruby-on-rails
|irb
I tried this :
User.find(1).update_attribute('first_name', '#{first.name.titleize}')
=> /#{first.name.titleize}
I am not sure any other way to do this.
Many thanks
© Stack Overflow or respective owner