how to beautify validations in rails -


I have a simple loft rail application that is validataes_presence_of

Verification make the limit of each textfield I just want the error messages that appear at the top.

How do I verify these types of changes or color change?

Track applications for their [application_root] / public / stylesheets Let's store in. A new Rail app will have a file named " default.css in this directory. This file contains the following:

  #errorExplanation {width: 400px; Border: 2px solid red; Padding: 7px; Padding-down: 12px; Margin-down: 20px; Background color: #FFF; } #errorExplanation h2 {text-align: left; font-weight: bold; Padding: 5px 5px 5px 15px; Font-size: 12px; Margin: -7px; Background color: # c00; Color: #fff; } #errorExplanation p {color: # 333; Margin-down: 0; Padding: 5px; } #errorExplanation ul li {font-size: 12px; List style: Category; }  

If you play about the values ​​of some parameters here - especially the border - you can find something that looks more like your taste .


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -