This won't work for editing an existing deposit type.  You'll need to keep it the way it was:
<%= form_for @deposit_type do |f| %>