lib/generators/goma/erb/templates/user/_form.html.erb in goma-0.0.1.gamma vs lib/generators/goma/erb/templates/user/_form.html.erb in goma-0.0.1.rc1
- old
+ new
@@ -35,8 +35,8 @@
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<%- end -%>
</div>
<% end -%>
<div class="actions">
- <%%= f.submit %>
+ <%%= f.submit ( @<%= singular_table_name %>.try(:persisted?) ? 'Update' : 'Sign up' ) %>
</div>
<%% end %>