Skip to content

Commit 26e1888

Browse files
committed
Cosmetic change with comments
1 parent f8cea5c commit 26e1888

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

app/controllers/pokemons_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def new; end
99
# GET /pokemon/workshop
1010
def workshop; end
1111

12-
# POST /pokemon
12+
# POST /pokemon (Disabled as v2 released)
1313
def create
1414
pokemon = Pokemon.create(
1515
email: params[:email],
@@ -24,7 +24,7 @@ def create
2424
redirect_to pokemon_download_path(key: pokemon.download_key)
2525
end
2626

27-
# GET /pokemon/download
27+
# GET /pokemon/download (Disabled as v2 released)
2828
def show
2929
pokemon = Pokemon.find_by(download_key: params[:key])
3030
if pokemon.nil?

app/views/pokemons/show.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% provide(:title, '『ポケモンと学ぶ初めてのプログラミング』素材ダウンロードに参加する皆さまへ') %>
22
<% provide(:desc, '『ポケモンと学ぶ初めてのプログラミング』のワークショップで必要となるポケモン素材のダウンロードページです。') %>
3-
<% provide(:url, '/pokemon/downloads') %>
3+
<% provide(:url, '/pokemon/download') %>
44
<% provide(:meta_image, '/img/pokemon_scratch.png') %>
55

66
<div class="container" style="line-height: 2.2em;">
@@ -12,9 +12,9 @@
1212
<p style="padding-top: 20px;">
1313
ボタンをクリックして、<br class="ignore-pc" />ポケモン素材をダウンロードしよう!
1414
</p>
15-
<%= link_to @presigned_url, class: "btn-blue", style: "max-width:320px; display:block; margin:20px auto 100px;" do %>
15+
<%=# link_to @presigned_url, class: "btn-blue", style: "max-width:320px; display:block; margin:20px auto 100px;" do %>
1616
<i class="fas fa-folder-download white"></i>
1717
ポケモン素材をダウンロードする
18-
<% end %>
18+
<%# end %>
1919
</section>
20-
</div>
20+
</div>

config/routes.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,12 @@
6969
resources :podcasts, only: %i(index show)
7070
resources :spaces, only: %i(index)
7171

72-
get "/podcast", to: redirect('/podcasts')
73-
get "/podcasts/feed" => "podcasts#feed"
74-
get "/stats" => "stats#show"
72+
get "/podcast", to: redirect('/podcasts')
73+
get "/podcasts/feed" => "podcasts#feed"
74+
get "/stats" => "stats#show"
7575
get "/stretch3" => "stretch3s#new"
76-
post "/stretch3" => "stretch3s#create"
77-
get "/pokemon" => "pokemons#new"
78-
#post "/pokemon" => "pokemons#create"
79-
#get "/pokemon/download" => "pokemons#show"
76+
post "/stretch3" => "stretch3s#create"
77+
get "/pokemon" => "pokemons#new"
8078
get "/pokemon/download", to: redirect('/pokemon')
8179
get "/pokemon/workshop" => "pokemons#workshop"
8280

0 commit comments

Comments
 (0)