show.html.erb
ビューにアラート フラッシュ メッセージを表示するために、次のコードを作成しました。
render action: 'show', alert: 'Please fix mistakes outlined in red'
ただし、アラートは表示されません。ただし、通知が表示されます。render action: 'show'
直感で書いたので、上記の呼び出しは間違っていると思います。これは私の html.erb コードです:
<%if notice%><p id="notice"><%= notice %></p><%end%>
<%if alert%><p id="alert"><%= alert %></p><%end%>