Sha256: 306993909e1bc0acfefc069a8a5eb90caafe3f75d56fbca8e586115b849f7890
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
require_dependency "pages_cms/application_controller" module PagesCms class Admin::ContactsController < ApplicationController def index @contacts = Contact.all end def destroy Contact.find(params[:id]).destroy flash[:success] = 'Contact deleted' redirect_to admin_contacts_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pages_cms-1.1.0 | app/controllers/pages_cms/admin/contacts_controller.rb |