-#{@<%= singular_name %>.id}" %>" class="edit" style="display: none;"> <%%= form_remote_tag :url => { :controller => '<%= controller_name %>', :action => 'update', :id => @<%= singular_name %> }, :loading => "AjaxScaffold.updateOnLoading(request,'<%= singular_name %>',#{@<%= singular_name %>.id});", :success => "AjaxScaffold.updateOnSuccess(request,'<%= singular_name %>',#{@<%= singular_name %>.id});", :failure => "AjaxScaffold.updateOnFailure(request,'<%= singular_name %>',#{@<%= singular_name %>.id});", :complete => "AjaxScaffold.updateOnComplete(request,'<%= singular_name %>',#{@<%= singular_name %>.id});", :html => { :id => "edit-<%= singular_name %>-#{@<%= singular_name %>.id}-form" } %>

Edit <%= Inflector.titleize(singular_name) %>

-#{@<%= singular_name %>.id}-errors" %>" style="display: none;" >
<%%= render :partial => 'form' %>

<%%= submit_tag "Update", :class => "submit" %> <%%= link_to_function "Cancel", "AjaxScaffold.updateOnCancel('<%= singular_name %>',#{@<%= singular_name %>.id});" %> <%%= loading_indicator_tag '<%= singular_name %>', "update-#{@<%= singular_name %>.id}" %>

<%%= end_form_tag %>