| OLD | NEW |
|---|---|
| 1 <h1>Edit News Item</h1> | 1 <h1>Edit News Item</h1> |
| 2 | 2 |
| 3 <%= start_form_tag({:action => 'update', :id => @news_item}, :multipart => true) %> | 3 <% form_tag({:action => 'update', :id => @news_item}, :multipart => true) do %> |
| 4 <%= render :partial => 'form' %> | 4 <%= render :partial => 'form' %> |
| 5 <%= submit_tag 'Update this post' %> | 5 <%= submit_tag 'Update this post' %> |
| 6 <input type="button" value="Cancel" onClick="window.location='<%= url_for :act ion => 'index' %>'"> | 6 <input type="button" value="Cancel" onClick="window.location='<%= url_for :act ion => 'index' %>'"> |
| 7 <%= end_form_tag %> | 7 <% end %> |
| OLD | NEW |