2020-04-17から1日間の記事一覧

【Rails】flashを使う

<% if notice %> <div class="alert alert-info role="alert"> <%= notice %><button type="button" class="close" data-dismiss="alert">&times;</button> </div> <% end %> <% if alert %> <div class="alert alert-danger" role="alert"> <%= alert %><button type="button" class="close" data-dismiss="alert">&times;…</button></div>