hamlでtext_areaヘルパメソッドを使う場合は、以下のように"~"を使うと良い。
1 ~ text_area :foo
~ について (cheat hamlより)
Ruby expression
preserving whitespace , e.g. %pre~ @content.bo dy Works just like =, but calls the find_and_p reserve helper to keep line breaks intact in the output.
posted by
genki
on Wed 6 May 2009
at 11:33