コードの最初の行は私が望むことを実行し、2番目の行は最初の単語のみを大文字にします。
<%= the_label = "Time_Balance".titlecase %><br />
<%= f.label "Time_Balance".titlecase %><br />
入力ラベルにタイトルを付けたいのですが、管理できません。
これも機能しません:
<%= the_label = "Time_Balance".titlecase %><br />
<%= f.label the_label %><br />
これもしません:
<%= the_label = "Time_Balance" %><br />
<%= f.label the_label.titlecase %><br />