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