comparison app/views/pastes/_form.html.erb @ 39:a930c717654c

Add Clear button to the form.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 02:08:11 +0700
parents e09a3be8dd14
children 8ef70e8c239d
comparison
equal deleted inserted replaced
38:91d3749cbff8 39:a930c717654c
14 <div class="field"> 14 <div class="field">
15 <%= f.text_area :paste, :class => 'span12', :rows => 10 %> 15 <%= f.text_area :paste, :class => 'span12', :rows => 10 %>
16 </div> 16 </div>
17 <div class="form-actions"> 17 <div class="form-actions">
18 <%= f.submit :class => 'btn btn-primary' %> 18 <%= f.submit :class => 'btn btn-primary' %>
19 <%= link_to 'Clear', root_path, :class => 'btn', :id => 'reset_paste' %>
19 </div> 20 </div>
20 <% end %> 21 <% end %>