-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to the Rails 7 app, test these streaming responses for Rails 6. Remove rack-mini-profiler, because the streaming won't work with it.
- Loading branch information
Showing
5 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1>Rails 6 mysql app</h1> | ||
|
||
<ul> | ||
<li><%= link_to "Slow request", slow_path %></li> | ||
<li><%= link_to "Error request", error_path %></li> | ||
<li><%= link_to "Slow streaming request", streaming_slow_path %></li> | ||
<li><%= link_to "Streaming request with error", streaming_error_path %></li> | ||
<li><%= link_to "Posts: resources with queies", posts_path %></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
Rails.application.routes.draw do | ||
get "/slow", to: "tests#slow" | ||
get "/error", to: "tests#error" | ||
get "/streaming/slow", to: "tests#streaming_slow" | ||
get "/streaming/error", to: "tests#streaming_error_in_body" | ||
|
||
resources :posts, :except => %i[edit update destroy] | ||
|
||
root to: "tests#index" | ||
end |