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