Andrew Tomaka
ae9aecc2ab
$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.
7 lines
226 B
Text
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 %>
|