Rails Error layout

202 views
asked Sep 30, 2013 in General by Richard_123 (360 points)
Hi
 
I am using Rails and I recently created a new form to add new records with a few mandatory fields names but when I try to add blank records I get an error which is what is supposed to happen but the problem is that  page layout is changed. The labels are all moved to a new line. I tried deleting the CSS files . How can I fix this? Can anyone please help?
Thanks all

2 Answers

0 like 0 dislike
answered Sep 30, 2013 by lightSpeed (2,420 points)
Check your folder assets/stylesheets and look for  scaffold css . This file has css for the .field_with_error . Try removing that line and see if this fixes it
0 like 0 dislike
answered Sep 30, 2013 by FixHost (12,380 points)
in your class CSS add this line: display:inline-block
...