view app/views/pastes/new.html.erb @ 373:6e3e1e7b0212

Handle unique error in model instead of controller.
author nanaya <me@myconan.net>
date Sat, 06 Jun 2015 22:12:56 +0900
parents 7f1eac4a7fa9
children 2ad092e60975
line wrap: on
line source

<% provide :title, 'New Paste' %>

<% if notice %>
  <div class="alert alert-info">
    <strong>Info:</strong>
    <%= notice %>
  </div>
<% end %>

<% if alert %>
  <div class="alert alert-danger">
    <strong>Error:</strong>
    <%= alert %>
  </div>
<% end %>

<div class="page-header">
  <h1>New Paste</h1>
</div>

<%= render 'form' %>