Sha256: 4db05a2e2eafefb639c997c865ce1dffd382684d8b4364ba6d7e07f6739992aa
Contents?: true
Size: 328 Bytes
Versions: 32
Compression:
Stored size: 328 Bytes
Contents
def update @<%= singular_name %> = <%= class_name %>.find(params[:id]) if @<%= singular_name %>.update_attributes(params[:<%= singular_name %>]) flash[:notice] = "Successfully updated <%= name.humanize.downcase %>." redirect_to <%= item_path('url') %> else render :action => 'edit' end end
Version data entries
32 entries across 32 versions & 12 rubygems