質問編集履歴
2
該当のソースコードを追加したため
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,9 +42,6 @@
|
|
42
42
|
```
|
43
43
|
|
44
44
|
### 該当のソースコード
|
45
|
-
|
46
|
-
該当するのはこちらの2つのファイルだと思うのですが、、
|
47
|
-
|
48
45
|
```routes.rb
|
49
46
|
Rails.application.routes.draw do
|
50
47
|
devise_for :users
|
@@ -78,7 +75,61 @@
|
|
78
75
|
end
|
79
76
|
|
80
77
|
```
|
78
|
+
```application.html.erb
|
79
|
+
<!DOCTYPE html>
|
80
|
+
<html>
|
81
|
+
<head>
|
82
|
+
<title>Bookers3</title>
|
83
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
84
|
+
<%= csrf_meta_tags %>
|
85
|
+
<%= csp_meta_tag %>
|
81
86
|
|
87
|
+
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
88
|
+
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
89
|
+
</head>
|
90
|
+
|
91
|
+
<body>
|
92
|
+
<header>
|
93
|
+
<% if user_signed_in? %>
|
94
|
+
<li>
|
95
|
+
<%= link_to "ログアウト", destroy_user_session_path, method: :delete %>
|
96
|
+
</li>
|
97
|
+
<% else %>
|
98
|
+
<li>
|
99
|
+
<%= link_to "新規登録", new_user_registration_path %>
|
100
|
+
</li>
|
101
|
+
<li>
|
102
|
+
<%= link_to "ログイン", new_user_session_path %>
|
103
|
+
</li>
|
104
|
+
<% end %>
|
105
|
+
</header>
|
106
|
+
<%= yield %>
|
107
|
+
</body>
|
108
|
+
</html>
|
109
|
+
|
110
|
+
```
|
111
|
+
↓ rails routesでパスを確認
|
112
|
+
```Cloud9
|
113
|
+
ec2-user:~/environment/bookers3 (develop) $ rails routes
|
114
|
+
Prefix Verb URI Pattern Controller#Action
|
115
|
+
new_user_session GET /users/sign_in(.:format) devise/sessions#new
|
116
|
+
user_session POST /users/sign_in(.:format) devise/sessions#create
|
117
|
+
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
|
118
|
+
new_user_password GET /users/password/new(.:format) devise/passwords#new
|
119
|
+
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
|
120
|
+
user_password PATCH /users/password(.:format) devise/passwords#update
|
121
|
+
PUT /users/password(.:format) devise/passwords#update
|
122
|
+
POST /users/password(.:format) devise/passwords#create
|
123
|
+
cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
|
124
|
+
new_user_registration GET /users/sign_up(.:format) devise/registrations#new
|
125
|
+
edit_user_registration GET /users/edit(.:format) devise/registrations#edit
|
126
|
+
user_registration PATCH /users(.:format) devise/registrations#update
|
127
|
+
PUT /users(.:format) devise/registrations#update
|
128
|
+
DELETE /users(.:format) devise/registrations#destroy
|
129
|
+
POST /users(.:format) devise/registrations#create
|
130
|
+
root GET /
|
131
|
+
|
132
|
+
```
|
82
133
|
|
83
134
|
|
84
135
|
### 補足情報(FW/ツールのバージョンなど)
|
1
いらない文言が入っていたため
test
CHANGED
File without changes
|
test
CHANGED
@@ -65,7 +65,7 @@
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def after_sign_out_path_for(resource)
|
68
|
-
|
68
|
+
|
69
69
|
root_path
|
70
70
|
end
|
71
71
|
|