Use the same form for new as well as edit. #1916

This commit is contained in:
Eric Davis
2009-01-19 10:57:28 -08:00
parent c178f616d5
commit 83764cfe40
+1 -24
View File
@@ -1,26 +1,3 @@
<h1>Editing rate</h1>
<% form_for(@rate) do |f| %>
<p>
<%= f.label :amount %><br />
<%= f.text_field :amount %>
</p>
<p>
<%= f.label :user_id %><br />
<%= f.text_field :user_id %>
</p>
<p>
<%= f.label :project_id %><br />
<%= f.text_field :project_id %>
</p>
<p>
<%= f.label :date_in_effect %><br />
<%= f.date_select :date_in_effect %>
</p>
<p>
<%= f.submit "Update" %>
</p>
<% end %>
<%= link_to 'Show', @rate %> |
<%= link_to 'Back', rates_path %>
<%= render :partial => 'rates/form' %>