search for: tag_without_error_wrapping

Displaying 3 results from an estimated 3 matches for "tag_without_error_wrapping".

2006 Apr 09
12
Validating two models from one form
Howdy, I''m working on my first RoR project, and I want to build a form. The tricky thing is, this form needs to insert / update against two models, each with their own validation rules. Unfortunately, I''m having an incredible amount of difficulty with the error handling, specifically the fields wrapped in <div class=''fieldWithErrors''></div>
2004 Nov 20
0
Stack level too deep on Cygwin and on Debian / Colinux with 0.5.0 - 0.8.5 Beta gems
...$ ruby public/dispatch.servlet -p 4000 -b debian $ links http://debian:4000/stacktest/test gives: ----- Showing /stacktest/test.rhtml where line #1 raised stack level too deep Show template trace /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_view/helpers/active_record_helper.rb:123:in `tag_without_error_wrapping'' /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_view/helpers/active_record_helper.rb:126:in `tag_without_error_wrapping'' ... (this line repeats several hundred times) /usr/lib/ruby/gems/1.8/gems/actionpack-0.9.5/lib/action_view/helpers/active_record_helper.rb:126:in `ta...
2006 May 18
2
attempt to override the ''tag'' method
I want to override the ''tag'' method in ActionView::Helpers::TagHelper 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