This project is archived and is in readonly mode.

#4078 ✓resolved
Cam Caine

field_error_proc 'error_message undefined method' in rails 3.pre

Reported by Cam Caine | March 1st, 2010 @ 03:35 PM

I am trying to override the field_error_proc:

ActionView::Base.field_error_proc = do |html, instance|
%(#{html} #{instance.error_message}) end

but it throws this error:

ActionView::Template::Error (undefined method error_message' for #<ActionView::Helpers::InstanceTag:0x0000010361b798>)

Has error_message been changed/deprecated?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket



Referenced by