aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/erb/scaffold/templates
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2014-07-04 16:18:34 +0200
committerArun Agrawal <arunagw@gmail.com>2014-07-04 16:20:53 +0200
commite197fd7f378815f3f56cac824b2926061fc17203 (patch)
tree334213d390825207678d4a12be333554320d7abf /railties/lib/rails/generators/erb/scaffold/templates
parentcce376c999af0f35a940235dc56602120aa8462a (diff)
downloadrails-e197fd7f378815f3f56cac824b2926061fc17203.tar.gz
rails-e197fd7f378815f3f56cac824b2926061fc17203.tar.bz2
rails-e197fd7f378815f3f56cac824b2926061fc17203.zip
Display notice in index.html pages in scaffolded generated views
As we are setting notice in destroy action we should display that For more information see https://github.com/rails/rails/pull/14044 And https://github.com/rails/jbuilder/pull/191 closes #14044
Diffstat (limited to 'railties/lib/rails/generators/erb/scaffold/templates')
-rw-r--r--railties/lib/rails/generators/erb/scaffold/templates/index.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
index 025b1d8699..5e194783ff 100644
--- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
+++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
@@ -1,3 +1,5 @@
+<p id="notice"><%%= notice %></p>
+
<h1>Listing <%= plural_table_name.titleize %></h1>
<table>