Sha256: 61ff9f7df384fc022e9bcd678f7f552bab37917e3943d86a27ec6d1317989840

Contents?: true

Size: 244 Bytes

Versions: 1

Compression:

Stored size: 244 Bytes

Contents

  def update
    if @<%= instance_name %>.update_attributes(<%= instance_name %>_params)
      redirect_to <%= item_url %>, notice: "Successfully updated <%= model_name.underscore.humanize.downcase %>."
    else
      render :edit
    end
  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhoc-generators-0.0.5 lib/generators/adhoc/portfolio/templates/actions/update.rb