fieldWithErrors のタグを変更する - takihiroの日記
エラーのフィールドを囲むのがdivになってしまうのを、spanに変更する。ActionView::Base.field_error_proc = Proc.new {|html_tag, instance|
%(<span class="fieldWithErrors">#{html_tag}</span>)}
fieldWithErrors のタグを変更する - takihiroの日記
エラーのフィールドを囲むのがdivになってしまうのを、spanに変更する。ActionView::Base.field_error_proc = Proc.new {|html_tag, instance|
%(<span class="fieldWithErrors">#{html_tag}</span>)}
このブログ記事を参照しているブログ一覧: fieldWithErrors のタグを変更する
このブログ記事に対するトラックバックURL: http://www.pistolfly.jp/mt/mt-tb-alt.cgi/863
このページは、pistolflyが2010年4月 6日 09:21に書いたブログ記事です。
ひとつ前のブログ記事は「タイムスタンプ(created_at、updated_at)の更新を無効にする」です。
次のブログ記事は「Rails Logging Tips」です。
コメントする