ラクダ式とアンダースコア式の変換
$ rails c Loading development environment (Rails 3.0.1) irb(main):001:0> "hoge_foo".camelize => "HogeFoo" irb(main):002:0> "HogeFoo".underscore => "hoge_foo"
tableize
ってのもある。
$ rails c Loading development environment (Rails 3.0.1) irb(main):001:0> "hoge_foo".camelize => "HogeFoo" irb(main):002:0> "HogeFoo".underscore => "hoge_foo"
tableize
ってのもある。