Sha256: 9a9fe7fc1fb5607f5330a3a40d99de22248fe5467c7cd9839cca8f81a2c87dba
Contents?: true
Size: 310 Bytes
Versions: 21
Compression:
Stored size: 310 Bytes
Contents
def update @<%= instance_name %> = <%= class_name %>.find(params[:id]) if @<%= instance_name %>.update_attributes(params[:<%= instance_name %>]) redirect_to <%= items_url %>, :notice => "Successfully updated <%= class_name.underscore.humanize.downcase %>." else render :edit end end
Version data entries
21 entries across 21 versions & 2 rubygems