Sha256: ef9affe54bd159f8563d1d553902bb4a8d9cb29cd1e33a37fb24152222f34d2c
Contents?: true
Size: 345 Bytes
Versions: 15
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
15 entries across 15 versions & 1 rubygems