# HG changeset patch # User edogawaconan # Date 1381841528 -32400 # Node ID c4aba8990c5e7597c8665c98d383e2ec9ca052c4 # Parent 5d084a9716cadcdc500fc837feb9887a2797aba3 Fix new paste form. diff -r 5d084a9716ca -r c4aba8990c5e app/views/pastes/_form.html.erb --- a/app/views/pastes/_form.html.erb Tue Oct 15 21:51:57 2013 +0900 +++ b/app/views/pastes/_form.html.erb Tue Oct 15 21:52:08 2013 +0900 @@ -1,4 +1,4 @@ -<%= form_for(@paste) do |f| %> +<%= form_for @paste do |f| %> <% if @paste.errors.any? %>
<%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:
@@ -11,27 +11,22 @@
<% end %> -
- <%= f.text_area :paste, :class => 'span12', :rows => 10 %> - -
-
- <%= f.label :key, "Deletion key", class: "control-label" %> -
- <%= f.text_field :key %> -
-
-
- <%= f.label :is_private, "Make private", class: "control-label" %> -
- <%= f.check_box :is_private %> -
-
-
+
+ <%= f.text_area :paste, :rows => 10, :class => "form-control" %>
-
- <%= f.submit :class => 'btn btn-primary' %> - <%= link_to 'Clear', root_path, :class => 'btn', :id => 'reset_paste' %> +
+ <%= f.label :key, "Deletion key", class: "control-label" %> +
+ <%= f.text_field :key, :class => "form-control" %> +
+
+ <%= f.label :is_private do %> + <%= f.check_box :is_private %> + Private + <% end %> +
+ <%= f.submit :class => 'btn btn-primary' %> + <%= link_to 'Clear', root_path, :class => 'btn btn-danger', :id => 'reset_paste' %> <% end %>