Skip to content

Commit a852337

Browse files
committed
Redirect to paths rather than URLs
1 parent f60acc4 commit a852337

9 files changed

Lines changed: 9 additions & 9 deletions

app/controllers/collections_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def destroy
114114
@collection.create_activity :destroy, owner: current_user
115115
@collection.destroy
116116
respond_to do |format|
117-
format.html { redirect_to collections_url, notice: 'Collection was successfully destroyed.' }
117+
format.html { redirect_to collections_path, notice: 'Collection was successfully destroyed.' }
118118
format.json { head :no_content }
119119
end
120120
end

app/controllers/content_providers_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def destroy
8686
@content_provider.create_activity :destroy, owner: current_user
8787
@content_provider.destroy
8888
respond_to do |format|
89-
format.html { redirect_to content_providers_url, notice: 'Content Provider was successfully destroyed.' }
89+
format.html { redirect_to content_providers_path, notice: 'Content Provider was successfully destroyed.' }
9090
format.json { head :no_content }
9191
end
9292
end

app/controllers/events_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def destroy
186186
@event.create_activity :destroy, owner: current_user
187187
@event.destroy
188188
respond_to do |format|
189-
format.html { redirect_to events_url, notice: 'Event was successfully destroyed.' }
189+
format.html { redirect_to events_path, notice: 'Event was successfully destroyed.' }
190190
format.json { head :no_content }
191191
end
192192
end

app/controllers/learning_path_topics_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def destroy
6868
@learning_path_topic.create_activity :destroy, owner: current_user
6969
@learning_path_topic.destroy
7070
respond_to do |format|
71-
format.html { redirect_to learning_path_topics_url, notice: 'Topic was successfully destroyed.' }
71+
format.html { redirect_to learning_path_topics_path, notice: 'Topic was successfully destroyed.' }
7272
# format.json { head :no_content }
7373
end
7474
end

app/controllers/learning_paths_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def destroy
8585
@learning_path.create_activity :destroy, owner: current_user
8686
@learning_path.destroy
8787
respond_to do |format|
88-
format.html { redirect_to learning_paths_url, notice: 'Learning path was successfully destroyed.' }
88+
format.html { redirect_to learning_paths_path, notice: 'Learning path was successfully destroyed.' }
8989
format.json { head :no_content }
9090
end
9191
end

app/controllers/materials_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def destroy
131131
@material.create_activity :destroy, owner: current_user
132132
@material.destroy
133133
respond_to do |format|
134-
format.html { redirect_to materials_url, notice: 'Material was successfully destroyed.' }
134+
format.html { redirect_to materials_path, notice: 'Material was successfully destroyed.' }
135135
format.json { head :no_content }
136136
end
137137
end

app/controllers/nodes_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def destroy
7979
@node.create_activity :destroy, owner: current_user
8080
@node.destroy
8181
respond_to do |format|
82-
format.html { redirect_to nodes_url, notice: 'Node was successfully destroyed.' }
82+
format.html { redirect_to nodes_path, notice: 'Node was successfully destroyed.' }
8383
format.json { head :no_content }
8484
end
8585
end

app/controllers/spaces_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def destroy
6565
@space.create_activity :destroy, owner: current_user
6666
@space.destroy
6767
respond_to do |format|
68-
format.html { redirect_to spaces_url, notice: 'Space was successfully deleted.' }
68+
format.html { redirect_to spaces_path, notice: 'Space was successfully deleted.' }
6969
end
7070
end
7171

app/controllers/workflows_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def destroy
8888
@workflow.create_activity :destroy, owner: current_user
8989
@workflow.destroy
9090
respond_to do |format|
91-
format.html { redirect_to workflows_url, notice: 'Workflow was successfully destroyed.' }
91+
format.html { redirect_to workflows_path, notice: 'Workflow was successfully destroyed.' }
9292
format.json { head :no_content }
9393
end
9494
end

0 commit comments

Comments
 (0)