Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 399 Bytes

error_messages_helper.md

File metadata and controls

19 lines (12 loc) · 399 Bytes

Error Messages Helper

Rails Error Messages Form Helper

Installation

  • copy error_messages_helper.rb to app/helpers/error_messages_helper.rb
  • copy error_messages_helper_spec.rb to spec/helpers/error_messages_helper_spec.rb

Usage

  <%= f.error_messages %>
  <%= error_messages_for(@object) %>

Credits

Nifty Generators