私はTwitter-Bootstrapを使用し、それがメインのサイト上でそれをしないか、エラーのビューを表示するための正しいHTMLを生成したいよ:このようにエラーメッセージのHTMLビューを設定していますか?
上記フィールドのHTMLは次のとおりです。
<div class="control-group error">
<label for="inputError" class="control-label">Input with error</label>
<div class="controls">
<input type="text" id="inputError">
</div>
</div>
注:私はPlease correct the error, <span>
を削除しました。入力フィールドとラベルが必要です。
そして、私は、一例としてemail
フィールドを私のサインアップページを使用していた場合、それは次のようになります。
<div class="control-group">
<label for="user_email" class="control-label">Email*</label>
<div class="controls">
<input type="email" value="" name="user[email]" id="user_email" class="span3">
</div>
</div>
前者?