@@ -33,7 +33,7 @@ class EventsController < ApplicationController |
||
| 33 | 33 |
@event.destroy |
| 34 | 34 |
|
| 35 | 35 |
respond_to do |format| |
| 36 |
- format.html { redirect_to events_path }
|
|
| 36 |
+ format.html { redirect_back events_path, notice: 'Event deleted.' }
|
|
| 37 | 37 |
format.json { head :no_content }
|
| 38 | 38 |
end |
| 39 | 39 |
end |