<%= form_for @note do |f| %>
  <p>
    <%= f.text_field :title, placeholder: 'Title your note', autofocus: title_autofocus?(f.object) %>
  </p>
  <p>
    <%= f.bootsy_area :body_html, placeholder: 'Just start typing...' %>
  </p>
  <div class="form-actions">
    <%= f.submit class: 'btn btn-default' %>
  </div>
<% end %>

<%= form_for @note do |f| %>
  <p>
    <%= f.text_field :title, placeholder: 'Title your note', autofocus: title_autofocus?(f.object) %>
  </p>
  <p>
    <%= f.bootsy_area :body_html, placeholder: 'Just start typing...' %>
  </p>
  <div class="form-actions">
    <%= f.submit class: 'btn btn-default' %>
    <% if @note.persisted? %>
      <%= link_to note_path(@note),
        method: :delete,
        data: { confirm: 'Are you sure?' } do %>
        <i class="fa fa-trash-o"></i>
      <% end %>
    <% end %>
  </div>
<% end %>

Add 'delete' button to note form.
Add 'delete' button to note form.
