Sha256: e7cb015f0a4658224d0e76c5a43c64599b5423c677d288a45b37c55b17efafd4
Contents?: true
Size: 287 Bytes
Versions: 3
Compression:
Stored size: 287 Bytes
Contents
def update if @<%= singular_name %>.update_attributes(params[:<%= singular_name %>]) flash[:notice] = t('flash_notice_successfully_updated', :model => <%=class_name%>.human_name) redirect_to <%= item_path('url') %> else render :action => 'edit' end end
Version data entries
3 entries across 3 versions & 1 rubygems