Skip to content

Commit e81993a

Browse files
committed
Replace why route
1 parent d2a01d0 commit e81993a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/views/demo/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</p>
1212

1313
<div class="mb-8">
14-
<blockquote class="twitter-tweet" data-media-max-width="560"><p lang="en" dir="ltr">It doesn&#39;t take much<br><br>Sprinkling exercise snacks throughout the day (3x, 1-3 mins. each) has a big impact on lowering cancer- and cardiovascular-related mortality<br><br>• Burpees<br>• Air squats<br>• Sprinting up the stairs<br><br>These are also great for breaking up sedentary periods <a href="https://t.co/i0FV8jZriq">pic.twitter.com/i0FV8jZriq</a></p>&mdash; FoundMyFitness Clips (@fmfclips) <a href="https://twitter.com/fmfclips/status/1784261555745440157?ref_src=twsrc%5Etfw">April 27, 2024</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
14+
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/5Q0UDIFQrVI?si=b2bWQUPZsZTfNZL3&amp;controls=0" title="YouTube video explaining the risks of sitting for prolonged periods" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
1515
</div>
1616

1717

app/views/exercises/_join.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<%= link_to "Join the exercises", join_exercises_path, class: "button-primary", data: { controller: "audio", action: "audio#resumeAudioContext", turbo_frame: "body" } %>
77
</p>
88
<p class="text-center">
9-
<%= link_to "why?", demo_path, class: "text-sm", data: { controller: "audio", action: "audio#resumeAudioContext", turbo_frame: "body" } %>
9+
<%= link_to "why?", why_path, class: "text-sm", data: { controller: "audio", action: "audio#resumeAudioContext", turbo_frame: "body" } %>
1010
</p>
1111
</div>
1212
</div>

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Rails.application.routes.draw do
2-
get "demo", to: "demo#index"
2+
get "why", to: "demo#index"
33
get "test", to: "demo#test"
44

55
resources :exercises, only: [ :index ] do

test/controllers/demo_controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class DemoControllerTest < ActionDispatch::IntegrationTest
55

66
test "should get index" do
77
create_exercise
8-
get demo_url
8+
get why_url
99
assert_response :success
1010
assert_match "We need to move frequently.", response.body
1111
end

0 commit comments

Comments
 (0)