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
Merge pull request #16048 from arunagw/aa-added-notice-index-page

Display notice in index.html pages in scaffolded generated views