-
form_for :page, url(:pages, :destroy, id: @page.id), method: :delete, class: ‘form-destroy’ do |f| h2 Are you sure you want to delete page ‘#{ @page.title }’ at ‘#{ @page.path }’?
p.form-actions
= hidden_field_tag :confirm, value: true = f.submit 'Yes, Delete This Page', class: 'btn btn-primary' = link_to 'No, Cancel', url(:pages, :index), class: 'btn btn-cancel'