Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Cam Caine's latest activity

Wednesday, March 10 2010
4078 field_error_proc 'error_message undefined method' in rails 3.pre was updated in Ruby on Rails
  • Cam Caine
    • Tag set to actionview
    by Cam Caine at 11:33 PM

    I think if you try adding .html_safe on the string output it works, but I am more concerned with getting what was instance.error_message but now errors.on is []...

Monday, March 01 2010
4078 field_error_proc 'error_message undefined method' in rails 3.pre was created in Ruby on Rails
  • Cam Caine
    Cam Caine created the ticket at 3:35 PM

    I am trying to override the field_error_proc:

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

    but it t...