Skip to content

Commit 94a239a

Browse files
committed
update puzzle view
1 parent 6a3b7c4 commit 94a239a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
class PuzzlesController < ApplicationController
22
def index
3+
@puzzles = Puzzle.all
34
end
45
end

app/views/puzzles/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<% if session[:user_token] %>
22
<%= link_to 'Logout', session_path(1), data: { turbo_method: :delete } %>
3+
<h1>Puzzles#index</h1>
4+
<p>Find me in app/views/puzzles/index.html.erb</p>
35
<% else %>
46
<%= link_to 'Login with Google', '/auth/google_oauth2' %>
57
<% end %>
68

7-
<h1>Puzzles#index</h1>
8-
<p>Find me in app/views/puzzles/index.html.erb</p>

0 commit comments

Comments
 (0)