diff options
| author | mo khan <mo@mokhan.ca> | 2014-09-23 20:30:56 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-09-23 20:30:56 -0600 |
| commit | 8b8b6c2206f6c3ef41db16ad0d788625f878349f (patch) | |
| tree | b61a9f0104292bfbd936ba06f4081d3c159c623b /app/controllers/admin | |
| parent | c1393fe700714d4a69e94ad23a863ca816d3beaa (diff) | |
add delete button to jobs.
Diffstat (limited to 'app/controllers/admin')
| -rw-r--r-- | app/controllers/admin/jobs_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/admin/jobs_controller.rb b/app/controllers/admin/jobs_controller.rb index 87dd4e40..3680a6f3 100644 --- a/app/controllers/admin/jobs_controller.rb +++ b/app/controllers/admin/jobs_controller.rb @@ -12,5 +12,11 @@ module Admin def show @job = @repository.find(params[:id]) end + + def destroy + @job = @repository.find(params[:id]) + @job.destroy + redirect_to admin_jobs_path + end end end |
