Sha256: da0374482181675c0db11c810f68a7cdefb175deaafcb3c9f95e3426dea7e43e

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

  def destroy
    @<%= singular_name %> = <%= class_name %>.find(params[:id])
    @<%= singular_name %>.destroy
    flash[:notice] = t('flash_notice_successfully_destroyed', :model => <%=class_name%>.human_name)
    redirect_to <%= items_path('url') %>
  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
splendeo-generators-0.2.0 rails_generators/splendeo_scaffold/templates/actions/destroy.rb