search for: orig_tag

Displaying 1 result from an estimated 1 matches for "orig_tag".

2006 May 18
2
attempt to override the ''tag'' method
...per to do some generalized error handling similar to the way scaffolding puts a red border around fields that fail validation. I''ve created a file lib/rails_patches/tag_helper.rb which contains the following. module ActionView module Helpers module TagHelper alias_method :orig_tag, :tag def tag(name, options = nil, open = false) breakpoint orig_tag(name, options, open) end end end end I then have a view with the following <h1>New post</h1> <%= start_form_tag :action => ''create'' %> <p>&...