diff options
Diffstat (limited to 'app/views/snippets/_form.html.erb')
-rw-r--r-- | app/views/snippets/_form.html.erb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/app/views/snippets/_form.html.erb b/app/views/snippets/_form.html.erb deleted file mode 100644 index 8b21b3d..0000000 --- a/app/views/snippets/_form.html.erb +++ /dev/null @@ -1,26 +0,0 @@ -<div class="panel panel-default"> - <div class="panel-body"> - <%= form_for(snippet, url: "/", html: { method: "post" }) do |f| %> - <% if snippet.errors.any? %> - <div class="alert alert-danger" role="alert"> - <p><%= pluralize(snippet.errors.count, "error") %> prohibited this snippet from being saved:</p> - - <ul> - <% snippet.errors.full_messages.each do |message| %> - <li><%= message %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="form-group"> - <%= f.text_field :title, placeholder: "Untitled", class: "form-control" %> - </div> - <div class="form-group" id="code-field"> - <%= f.text_area :code, style: "display: none" %> - </div> - <%= f.hidden_field :language, value: "Ruby" %> - <button type="submit" class="btn btn-default">Run</button> - <% end %> - </div> -</div> |