view app/views/pastes/_form.html.erb @ 376:02903dc8214d

Fix code styles. - remove return and self keyword and use find_each instead of each.
author nanaya <me@myconan.net>
date Sat, 06 Jun 2015 22:34:36 +0900
parents 5ca896a5ddef
children 2ad092e60975
line wrap: on
line source

<%= form_for @paste do |f| %>
  <div class="form-group">
    <%= f.text_area :paste, :rows => 10, :class => "form-control" %>
  </div>

  <div class="form-group">
    <%= f.label :key, "Deletion key", class: "control-label" %>
    <div class="row"><div class="col-sm-3">
      <%= f.text_field :key, :class => "form-control" %>
    </div></div>
  </div>
  <%= render 'shared/filter_spam' %>
  <div class="checkbox">
    <%= f.label :is_private do %>
      <%= f.check_box :is_private %>
      Private
    <% end %>
  </div>
  <%= f.button :class => 'btn btn-primary' %>
  <%= link_to 'Clear', root_path, :class => 'btn btn-danger', :id => 'reset_paste' %>
<% end %>