tack2us/app/views/pastes/_form.html.erb
Andrew Tomaka ae9aecc2ab Deal with turbolinks
$document().ready is only called when the DOM completes loading.  Since
turbolinks loads new data into the DOM without completely reloading, the ready
event is never fired.  We can account for this by using the page:load event.
2014-03-09 06:36:23 -04:00

7 lines
226 B
Text

<%= form_for @paste do |f| %>
<div class="form-group">
<%= f.label :content %>
<%= f.text_area :content, class: 'form-control', rows: 15 %>
</div>
<%= f.submit 'Paste it!', class: 'btn btn-primary' %>
<% end %>