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