SHARE
TWEET

Untitled

a guest Aug 12th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <% flash.now[:alert] = 'This an example alert message.' %>
  2. <% flash.now[:error] = 'This an example error message.' %>
  3. <% flash.now[:notice] = 'This an example notice message.' %>
  4. <% flash.now[:success] = 'This an example success message.' %>
  5.  
  6. <% flash.now[:secret] = 'This will not be shown.' %>
  7. <% flash.now[:cool] = true %>
  8.  
  9. <% flash_messages.each do |type, message| %>
  10.   <div class="flash-<%= type %>"><%= message %></div>
  11. <% end %>
RAW Paste Data
Top