I am trying to figure out how to disable the error field thing in rails, the thing that wraps errous fields with a div (class fieldWithError). Any help on this would be great! -Ray -- Posted via http://www.ruby-forum.com/.
On 8/2/06, Ray Morgan <RentaRay@yahoo.com> wrote:> > I am trying to figure out how to disable the error field thing in rails, > the thing that wraps errous fields with a div (class fieldWithError). > Any help on this would be great! > > -Ray > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >You will need to overwrite the error_message_on method in /lib/action_view/helpers/active_record_helper.rb Change div to span or whatever in there. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060802/8a383d84/attachment.html
Or just change the stylesheets to not do anything to those divs. Easier than overriding the helpers. On 8/1/06, Daniel N <has.sox@gmail.com> wrote:> > > > On 8/2/06, Ray Morgan <RentaRay@yahoo.com> wrote: > > > > I am trying to figure out how to disable the error field thing in rails, > > the thing that wraps errous fields with a div (class fieldWithError). > > Any help on this would be great! > > > > -Ray > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > You will need to overwrite the > > error_message_on method > > > in > /lib/action_view/helpers/active_record_helper.rb > > Change div to span or whatever in there. > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060802/40c282ce/attachment.html
In CSS, I change .fieldWithError to display:inline, because sometimes it causes weird wrapping problems. Specifically if you have text field in a table. Stephen Gerstacker _____ From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Brian Hogan Sent: Tuesday, August 01, 2006 21:25 To: rails@lists.rubyonrails.org Subject: Re: [Rails] Disabling Error Divs Or just change the stylesheets to not do anything to those divs. Easier than overriding the helpers. On 8/1/06, Daniel N < has.sox@gmail.com <mailto:has.sox@gmail.com> > wrote: On 8/2/06, Ray Morgan <RentaRay@yahoo.com> wrote: I am trying to figure out how to disable the error field thing in rails, the thing that wraps errous fields with a div (class fieldWithError). Any help on this would be great! -Ray -- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails You will need to overwrite the error_message_on method in /lib/action_view/helpers/active_record_helper.rb Change div to span or whatever in there. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060802/001fbab8/attachment.html