Show different buttons based on if the Rate is new. #1914

This commit is contained in:
Eric Davis
2009-01-19 11:49:43 -08:00
parent 7d32fc7088
commit e97a68be0d

View File

@@ -24,7 +24,7 @@
<td align="center">
<%= 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')-%>
</td>
</tr>
</tbody>