Sha256: 9a9fe7fc1fb5607f5330a3a40d99de22248fe5467c7cd9839cca8f81a2c87dba

Contents?: true

Size: 310 Bytes

Versions: 21

Compression:

Stored size: 310 Bytes

Contents

  def update
    @<%= instance_name %> = <%= class_name %>.find(params[:id])
if @<%= instance_name %>.update_attributes(params[:<%= instance_name %>])
      redirect_to <%= items_url %>, :notice => "Successfully updated <%= class_name.underscore.humanize.downcase %>."
    else
      render :edit
    end
  end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
thesilverspoon-0.0.22 lib/templates/actions/update.rb
thesilverspoon-0.0.21 lib/templates/actions/update.rb
thesilverspoon-0.0.20 lib/templates/actions/update.rb
thesilverspoon-0.0.19 lib/templates/actions/update.rb
thesilverspoon-0.0.18 lib/templates/actions/update.rb
thesilverspoon-0.0.17 lib/templates/actions/update.rb
thesilverspoon-0.0.16 lib/templates/actions/update.rb
thesilverspoon-0.0.15 lib/templates/actions/update.rb
thesilverspoon-0.0.14 lib/templates/actions/update.rb
thesilverspoon-0.0.13 lib/templates/actions/update.rb
thesilverspoon-0.0.12 lib/templates/actions/update.rb
thesilverspoon-0.0.11 lib/templates/actions/update.rb
thesilverspoon-0.0.10 lib/templates/actions/update.rb
thesilverspoon-0.0.9 lib/templates/actions/update.rb
thesilverspoon-0.0.8 lib/templates/actions/update.rb
thesilverspoon-0.0.7 lib/templates/actions/update.rb
thesilverspoon-0.0.6 lib/templates/actions/update.rb
thesilverspoon-0.0.5 lib/templates/actions/update.rb
thesilverspoon-0.0.4 lib/templates/actions/update.rb
thesilverspoon-0.0.3 lib/templates/actions/update.rb