@@ -24,7 +24,9 @@ class EventsController < ApplicationController |
||
24 | 24 |
|
25 | 25 |
def reemit |
26 | 26 |
@event.reemit! |
27 |
- redirect_to :back, :notice => "Event re-emitted" |
|
27 |
+ respond_to do |format| |
|
28 |
+ format.html { redirect_back event_path(@event), notice: 'Event re-emitted.' } |
|
29 |
+ end |
|
28 | 30 |
end |
29 | 31 |
|
30 | 32 |
def destroy |