`
open2ye
  • 浏览: 101070 次
  • 性别: Icon_minigender_1
  • 来自: 温州
社区版块
存档分类
最新评论

Customize Field Error

阅读更多
# environment.rb
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance_tag|
"#{html_tag}"
end


Result:

<p>
<b>Mark<!---->b><br />
<div class="fieldWithErrors"><input id="product_mark" name="product[mark]" size="30" type="text" value="" /><!---->div>
<!---->p>
分享到:
评论

相关推荐

    FormEditText文本验证提示

    In your xml import an extra namespace on the root ...You can customize them using the attributes testErrorString used when the field does not pass the test emptyErrorString used when the field is empty

    Microsoft IIS 6.0: Administrator's Pocket Consultant

    Customize Web content, including error messages and redirection Manage Web applications, application pools, and Microsoft ASP.NET Configure SMTP, POP3, and advanced messaging options Implement ...

    EHLib 6.3.171〖D7~XE5〗

    SelectionDrawParams property is added in DBGridEh and DBVertGridEh component, which allows you to customize the style of the currently selected cell. The property has the following sub-properties: ...

    EurekaLog_7.5.0.0_Enterprise

    6)....Fixed: Empty "Count" field/column is now displayed as "1" in Viewer 7)....Fixed: Generic names with "," could not be decoded in Viewer 8)....Fixed: Updated Windows 10 detection for latest builds...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    Can customize inplace editor and data of the cell like in DBGridEh. TDBLookupComboboxEh component Provides all functionality of TDBLookupCombobox and adds several new features as follows: Can ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    Can customize inplace editor and data of the cell like in DBGridEh. TDBLookupComboboxEh component Provides all functionality of TDBLookupCombobox and adds several new features as follows: Can ...

    EhLib 9.1.024

    Can customize inplace editor and data of the cell like in DBGridEh. TDBLookupComboboxEh component Provides all functionality of TDBLookupCombobox and adds several new features as follows: Can ...

    simple-tags

    * Release of version 1.7.4, to avoid confusion with the borked version 1.7.2 published in error. * Externalize options array on external file for diminue memory consommation. (call only on options ...

    EhLib5.0.13 最新的ehlib源码

    Take effect when KeyField, ListField, ListSource, DataField and DataSource properties is empty. Drop down list can: Show titles, Have sizing grip, Automaticaly set width as sum of DisplayWidth ...

    plsqldev14.0.0.1961x32多语言版+sn.rar

    For the “Export Results as SQL file” function you can now customize the initialization and finalization. The WITH_PLSQL hint is now supported. Command Window enhancements New EXPORT TABLES and ...

    plsqldev14.0.0.1961x64多语言版+sn.rar

    For the “Export Results as SQL file” function you can now customize the initialization and finalization. The WITH_PLSQL hint is now supported. Command Window enhancements New EXPORT TABLES and ...

    BUS Hound

    If saving to a zip file, the comment is also used for the zip file comment. &lt;br&gt; &lt;br&gt;The Settings Window &lt;br&gt;This Window allows you to customize the capture process. Checkbox options in this...

    Senfore_DragDrop_v4.1

    Field test 5, released 16-dec-2001 ?1997-2001 Angus Johnson & Anders Melander http://www.melander.dk/delphi/dragdrop/ ------------------------------------------- Table of Contents: ------------------...

    Software Testing and Continuous Quality Improvement

    Software Testing and Continuous Quality Improvement &lt;br&gt;SECTION I SOFTWARE QUALITY IN PERSPECTIVE . . . . . . . . . . . . . . . 1 1 Quality Assurance Framework. . . . . . . ........

    spring-framework-reference4.1.4

    Not Using Commons Logging ................................................................... 12 Using SLF4J ..............................................................................................

    spring-framework-reference-4.1.2

    Not Using Commons Logging ................................................................... 12 Using SLF4J ..............................................................................................

Global site tag (gtag.js) - Google Analytics