mowsen-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2009-Jun-12 07:12 UTC
Just get the errortext, nothing more.
hey people i just wanna have the errortext if there is a error. error_message_on () always returns an additional div tag which destroys my whole design. i managed to get rid of the divs for the errorfields through ActionView::Base.field_error_proc = Proc.new { |html_tag, instance| "# { html_tag}" } in environment.rb. but how do i do that for just the errormessage? any help is greatly appreciated. thanks alot, moka
You can just override it at your helpers and change this behaviour. - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Fri, Jun 12, 2009 at 4:12 AM, mowsen-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org<mowsen-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > hey people > > i just wanna have the errortext if there is a error. error_message_on > () always returns an additional div tag which destroys my whole > design. i managed to get rid of the divs for the errorfields through > ActionView::Base.field_error_proc = Proc.new { |html_tag, instance| "# > { html_tag}" } > in environment.rb. but how do i do that for just the errormessage? > > any help is greatly appreciated. > > thanks alot, > moka > > >