[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Fernando Perez
Ok I found a fix: put that in an initializer: ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| span class=\fieldWithErrors\#{html_tag}/span end -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Marnen Laibow-Koser
Fernando Perez wrote: Hi, What's the correct way of writing a form? I do the following: %= form_for ... % p %= f.label :whatever % %= f.text_field :whatever % /p %- end -% Then I do some CSS to have all the labels aligned, and all the input fields aligned. The problem

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Fernando Perez
If that's ruining your design, then your CSS has problems. Nope. It is extremely common, to see forms created with p tags to separate each input. A div inside a p tag is not allowed by html standards, look for the internet, plenty people have this div problem. But you are right with tables,

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Marnen Laibow-Koser
Fernando Perez wrote: If that's ruining your design, then your CSS has problems. Nope. Yup. It is extremely common, to see forms created with p tags to separate each input. A div inside a p tag is not allowed by html standards, look for the internet, plenty people have this div

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread PuddingandPie
How do you manage that? IE 5, 6 and 7 don't support the table element :P. If I had my choice, I'd use them too, but until IE 6 and 7 finally die... I can't do it! On Oct 1, 5:48 am, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: Fernando Perez wrote: Hi, What's the correct

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Marnen Laibow-Koser
Josh Infiesto wrote: How do you manage that? IE 5, 6 and 7 don't support the table element :P. Of course they do. If I had my choice, I'd use them too, but until IE 6 and 7 finally die... I can't do it! Nonsense. On Oct 1, 5:48�am, Marnen Laibow-Koser rails-mailing-l...@andreas- Best,