diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-09 22:21:51 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-09 22:21:51 +0100 |
commit | 6cee532a44530eba71c961de55432a23e1e2e369 (patch) | |
tree | 3b5884a7ecab8ab4a9c3c2d5958d044ef2b8cc67 /railties/lib | |
parent | 00d6271d2b11a14065925529af0c1200406f8beb (diff) | |
download | rails-6cee532a44530eba71c961de55432a23e1e2e369.tar.gz rails-6cee532a44530eba71c961de55432a23e1e2e369.tar.bz2 rails-6cee532a44530eba71c961de55432a23e1e2e369.zip |
Added alert to layouts on scaffold.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/erb/scaffold/templates/layout.html.erb | 1 | ||||
-rw-r--r-- | railties/lib/generators/rails/stylesheets/templates/scaffold.css | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/generators/erb/scaffold/templates/layout.html.erb b/railties/lib/generators/erb/scaffold/templates/layout.html.erb index 420d17f33c..3f64be0c45 100644 --- a/railties/lib/generators/erb/scaffold/templates/layout.html.erb +++ b/railties/lib/generators/erb/scaffold/templates/layout.html.erb @@ -9,6 +9,7 @@ <body> <p class="notice"><%%= notice %></p> +<p class="alert"><%%= alert %></p> <%%= yield %> diff --git a/railties/lib/generators/rails/stylesheets/templates/scaffold.css b/railties/lib/generators/rails/stylesheets/templates/scaffold.css index de6669ad9e..ea3dc9b8b5 100644 --- a/railties/lib/generators/rails/stylesheets/templates/scaffold.css +++ b/railties/lib/generators/rails/stylesheets/templates/scaffold.css @@ -24,6 +24,10 @@ div.field, div.actions { color: green; } +.alert { + color: red; +} + .fieldWithErrors { padding: 2px; background-color: red; |