Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7312 (closed enhancement: incomplete)

Opened 1 year ago

Last modified 1 year ago

[PATCH] adding a method to active_record_helper

Reported by: stevenbristol Assigned to: core
Priority: normal Milestone: 1.x
Component: ActionPack Version: edge
Severity: normal Keywords:
Cc:

Description

I have added a method called ActiveRecordHelper#error_messages_on. This method is meant to provide the same functionality and output as ActiveRecordHelper#error_messages_for, which ActiveRecordHelper#error_message_on does not do. error_message_on provides nice functionality, but it's output is quite different from that of error_messages_for. This new method is intended to bridge that gap.

Please note that the unit test code was mercilessly stolen from http://dev.rubyonrails.org/ticket/7212 which was submitted by Rich Collins. He deserves full credit for that excellent patch.

Attachments

active_record_helper_error_messages_on.diff (3.9 kB) - added by stevenbristol on 01/23/07 04:32:04.

Change History

01/23/07 04:32:04 changed by stevenbristol

  • attachment active_record_helper_error_messages_on.diff added.

03/15/07 18:13:15 changed by josh

  • keywords set to verified.
  • version set to edge.

07/20/07 01:15:40 changed by mpalmer

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to incomplete.

This patch no longer applies cleanly to trunk. Please re-base it and reopen this ticket with the new patch. Thanks.