From e97a68be0d24ef0deb8614396407d3ca6dd4bbd2 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 19 Jan 2009 11:49:43 -0800 Subject: [PATCH] Show different buttons based on if the Rate is new. #1914 --- app/views/rates/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/rates/_form.html.erb b/app/views/rates/_form.html.erb index 77df412..88b65d2 100644 --- a/app/views/rates/_form.html.erb +++ b/app/views/rates/_form.html.erb @@ -24,7 +24,7 @@ <%= f.hidden_field "user_id" %> <%= hidden_field_tag "back_url", @back_url %> - <%= submit_tag l(:button_add),:class => 'button-small' -%> + <%= submit_tag((@rate.new_record? ? l(:button_add) : l(:button_update)), :class => 'button-small')-%>