[ruby on rails] fieldWithErrors のタグを変更する

fieldWithErrors のタグを変更する - takihiroの日記

エラーのフィールドを囲むのがdivになってしまうのを、spanに変更する。
ActionView::Base.field_error_proc = Proc.new {|html_tag, instance|
  %(<span class="fieldWithErrors">#{html_tag}</span>)}

トラックバック(0)

このブログ記事を参照しているブログ一覧: fieldWithErrors のタグを変更する

このブログ記事に対するトラックバックURL: http://www.pistolfly.jp/mt/mt-tb-alt.cgi/863

コメントする