Re: [Rails] field_with_errors.

2010-10-05 Thread Colin Law
On 5 October 2010 08:07, Mauro wrote: > On 5 October 2010 04:05, Butu wrote: >> Hello Mauro, >> >> tag is created in ActionView::Base >> class only in case of any errors. >> >> From Rails code base:- >> >>    # Specify the proc used to decorate input tags that refer to >> attributes with errors.

Re: [Rails] field_with_errors.

2010-10-05 Thread Mauro
On 5 October 2010 04:05, Butu wrote: > Hello Mauro, > > tag is created in ActionView::Base > class only in case of any errors. > > From Rails code base:- > >    # Specify the proc used to decorate input tags that refer to > attributes with errors. >    cattr_accessor :field_error_proc >    @@fiel

Re: [Rails] field_with_errors.

2010-10-04 Thread Butu
Hello Mauro, tag is created in ActionView::Base class only in case of any errors. >From Rails code base:- # Specify the proc used to decorate input tags that refer to attributes with errors. cattr_accessor :field_error_proc @@field_error_proc = Proc.new{ |html_tag, instance| "#{html

[Rails] field_with_errors.

2010-10-01 Thread Mauro
If a model doesn't pass validation the field in the view is put under a . But who create that div? field_text helper do it? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups