Skip to content

Commit

Permalink
redirect correctly after destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywatts committed Sep 27, 2014
1 parent e22e8e7 commit ee72a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/attendance_entries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def update
def destroy
@attendance_entry.destroy
respond_to do |format|
format.html { redirect_to event_attendance_entries_path(@event) }
format.html { redirect_to event_attendance_entries_path(@attendance_entry.event) }
format.json { head :no_content }
end
end
Expand Down

0 comments on commit ee72a45

Please sign in to comment.