annotate app/views/layouts/_alerts.html.erb @ 384:7ba798dee39d
No need to assign to variable when it can be just chained.
author |
nanaya <me@myconan.net> |
date |
Sun, 07 Jun 2015 02:59:29 +0900 |
parents |
2ad092e60975 |
children |
62fef621f39c |
rev |
line source |
379
|
1 <% if params[:notice] %>
|
|
2 <div class="alert alert-info">
|
|
3 <strong>Info:</strong>
|
|
4 <%= params[:notice] %>
|
|
5 </div>
|
|
6 <% end %>
|
|
7
|
|
8 <% if @paste && @paste.errors.any? %>
|
|
9 <div class="alert alert-danger">
|
|
10 <strong>Error:</strong>
|
|
11 <%= @paste.errors.full_messages.to_sentence %>
|
|
12 </div>
|
|
13 <% end %>
|