Mercurial > zeropaste
diff app/views/pastes/_form.html.erb @ 265:6cca1ab53337
Infinitely better error messages and notice.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 16 Oct 2013 02:56:30 +0900 |
parents | c4aba8990c5e |
children | dff632a63ada |
line wrap: on
line diff
--- a/app/views/pastes/_form.html.erb Wed Oct 16 02:19:36 2013 +0900 +++ b/app/views/pastes/_form.html.erb Wed Oct 16 02:56:30 2013 +0900 @@ -1,16 +1,4 @@ <%= form_for @paste do |f| %> - <% if @paste.errors.any? %> - <div class="alert alert-error" id="error_explanation"> - <h5><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h5> - - <ul> - <% @paste.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - <div class="form-group"> <%= f.text_area :paste, :rows => 10, :class => "form-control" %> </div>