From 83764cfe401580cc9cee17acb743f964d6590e21 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 19 Jan 2009 10:57:28 -0800 Subject: [PATCH] Use the same form for new as well as edit. #1916 --- app/views/rates/edit.html.erb | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/app/views/rates/edit.html.erb b/app/views/rates/edit.html.erb index 72154f8..9352b63 100644 --- a/app/views/rates/edit.html.erb +++ b/app/views/rates/edit.html.erb @@ -1,26 +1,3 @@

Editing rate

-<% form_for(@rate) do |f| %> -

- <%= f.label :amount %>
- <%= f.text_field :amount %> -

-

- <%= f.label :user_id %>
- <%= f.text_field :user_id %> -

-

- <%= f.label :project_id %>
- <%= f.text_field :project_id %> -

-

- <%= f.label :date_in_effect %>
- <%= f.date_select :date_in_effect %> -

-

- <%= f.submit "Update" %> -

-<% end %> - -<%= link_to 'Show', @rate %> | -<%= link_to 'Back', rates_path %> +<%= render :partial => 'rates/form' %>