diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/erb/scaffold/templates/layout.html.erb | 2 | ||||
-rw-r--r-- | railties/lib/generators/rails/stylesheets/templates/scaffold.css | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/generators/erb/scaffold/templates/layout.html.erb b/railties/lib/generators/erb/scaffold/templates/layout.html.erb index aacfbe4a8f..6460e5b599 100644 --- a/railties/lib/generators/erb/scaffold/templates/layout.html.erb +++ b/railties/lib/generators/erb/scaffold/templates/layout.html.erb @@ -7,7 +7,7 @@ </head> <body> -<p style="color: green"><%%= flash[:notice] %></p> +<p class="notice"><%%= flash[:notice] %></p> <%%= yield %> diff --git a/railties/lib/generators/rails/stylesheets/templates/scaffold.css b/railties/lib/generators/rails/stylesheets/templates/scaffold.css index 163f11441c..a3fdd11f6d 100644 --- a/railties/lib/generators/rails/stylesheets/templates/scaffold.css +++ b/railties/lib/generators/rails/stylesheets/templates/scaffold.css @@ -20,6 +20,10 @@ div.attribute, div.action { margin-bottom: 10px; } +.notice { + color: green; +} + .fieldWithErrors { padding: 2px; background-color: red; |