Skip to content

Commit 892d224

Browse files
committed
Redirect to paths rather than URLs
1 parent d29b3fb commit 892d224

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
@@ -187,7 +187,7 @@ def destroy
187187
@event.create_activity :destroy, owner: current_user
188188
@event.destroy
189189
respond_to do |format|
190-
format.html { redirect_to events_url, notice: 'Event was successfully destroyed.' }
190+
format.html { redirect_to events_path, notice: 'Event was successfully destroyed.' }
191191
format.json { head :no_content }
192192
end
193193
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
@@ -132,7 +132,7 @@ def destroy
132132
@material.create_activity :destroy, owner: current_user
133133
@material.destroy
134134
respond_to do |format|
135-
format.html { redirect_to materials_url, notice: 'Material was successfully destroyed.' }
135+
format.html { redirect_to materials_path, notice: 'Material was successfully destroyed.' }
136136
format.json { head :no_content }
137137
end
138138
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
@@ -87,7 +87,7 @@ def destroy
8787
@workflow.create_activity :destroy, owner: current_user
8888
@workflow.destroy
8989
respond_to do |format|
90-
format.html { redirect_to workflows_url, notice: 'Workflow was successfully destroyed.' }
90+
format.html { redirect_to workflows_path, notice: 'Workflow was successfully destroyed.' }
9191
format.json { head :no_content }
9292
end
9393
end

0 commit comments

Comments
 (0)