File: show.erb

package info (click to toggle)
ruby-rack-flash3 1.0.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 160 kB
  • sloc: ruby: 296; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div id="result">
  <% if flash.has?(params[:name]) %>
    <h1 class="highlight"><%= flash[params[:name]] %></h1>
    <cite>- from <code>flash[:<%= params[:name] %>]</code></cite>
  <% else %>
    <p>No flash message for <code>flash[:<%= params[:name] %>]</code></p>
  <% end %>
  
  <br>
  
  <small>
    <a href="/">Go Back Home</a>
  </small>
</div>