def update if @<%= instance_name %>.update_attributes(params[:<%= instance_name %>]) redirect_to(<%= item_url %>, :notice => "Successfully updated <%= class_name.underscore.humanize.downcase %>.") else render(:edit) end end