Sha256: 0290dfc2672fac66cec5359b4699371c26b4ff5d72df7f90810fde5b03442e45
Contents?: true
Size: 351 Bytes
Versions: 1
Compression:
Stored size: 351 Bytes
Contents
def update @<%= singular_name %> = <%= class_name %>.find(params[:id]) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
splendeo-generators-0.2.0 | rails_generators/splendeo_scaffold/templates/actions/update.rb |