質問するログイン新規登録

質問編集履歴

6

コードの追加しました

2020/10/22 05:52

投稿

yozakura10
yozakura10

スコア8

title CHANGED
File without changes
body CHANGED
@@ -38,10 +38,13 @@
38
38
  ```
39
39
  もしくは
40
40
 
41
- *```ruby
42
- <%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
43
- ```*
44
41
 
42
+ ```ruby
43
+ <div class="nav__right">
44
+ <%= link_to "ログイン", new_user_session_path, class: :nav__btn %>
45
+ *<%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>*
46
+ </div>
47
+ ```
45
48
  ```ruby
46
49
  routesの一覧
47
50
  cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel

5

codeの修正

2020/10/22 05:52

投稿

yozakura10
yozakura10

スコア8

title CHANGED
File without changes
body CHANGED
@@ -28,18 +28,21 @@
28
28
 
29
29
  end
30
30
 
31
+ ```ruby
31
32
  <div class="form__wrapper">
32
33
  <h2 class="page-heading">ユーザー新規登録</h2>
33
34
  <%= devise_error_messages! %>
34
- *```ruby
35
+
35
- <%= form_with model: @user, url: user_registration_path, local: true do |f| %>
36
+ *<%= form_with model: @user, url: user_registration_path, local: true do |f| %>*
37
+
36
- ```
38
+ ```
37
39
  もしくは
38
40
 
39
41
  *```ruby
40
42
  <%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
41
43
  ```*
42
44
 
45
+ ```ruby
43
46
  routesの一覧
44
47
  cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
45
48
  new_user_registration GET /users/sign_up(.:format) devise/registrations#new
@@ -50,6 +53,7 @@
50
53
  POST /users(.:format) devise/registrations#create
51
54
  root GET / prototypes#index
52
55
 
56
+ ```
53
57
  ここに言語名を入力
54
58
  ruby,html
55
59
  ソースコード

4

codeをやりました

2020/10/22 05:50

投稿

yozakura10
yozakura10

スコア8

title CHANGED
File without changes
body CHANGED
@@ -13,24 +13,32 @@
13
13
  *routes.rb*
14
14
  Rails.application.routes.draw do
15
15
  devise_for :users
16
+ *```ruby
16
- root to: "prototypes#index"*
17
+ root to: "prototypes#index
18
+ ```"*
17
19
  end
18
20
 
19
21
  *prototypes_controllerclass*
20
22
 
23
+ ```ruby
21
- def index
24
+ def index
22
25
 
23
26
  end
27
+ ```
24
28
 
25
29
  end
26
30
 
27
31
  <div class="form__wrapper">
28
32
  <h2 class="page-heading">ユーザー新規登録</h2>
29
33
  <%= devise_error_messages! %>
34
+ *```ruby
30
- <%= form_with model: @user, url: user_registration_path, local: true do |f| %>
35
+ <%= form_with model: @user, url: user_registration_path, local: true do |f| %>
36
+ ```*
31
37
  もしくは
32
38
 
39
+ *```ruby
33
- <%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
40
+ <%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
41
+ ```*
34
42
 
35
43
  routesの一覧
36
44
  cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel

3

追加コードを入れました

2020/10/22 05:41

投稿

yozakura10
yozakura10

スコア8

title CHANGED
File without changes
body CHANGED
@@ -10,7 +10,7 @@
10
10
  エラーメッセージ
11
11
  No route matches [GET] "/users"
12
12
  ### 該当のソースコード
13
- routes.rb
13
+ routes.rb
14
14
  Rails.application.routes.draw do
15
15
  devise_for :users
16
16
  *root to: "prototypes#index"*
@@ -27,10 +27,21 @@
27
27
  <div class="form__wrapper">
28
28
  <h2 class="page-heading">ユーザー新規登録</h2>
29
29
  <%= devise_error_messages! %>
30
-
31
30
  *<%= form_with model: @user, url: user_registration_path, local: true do |f| %>*
32
31
  もしくは
32
+
33
33
  *<%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>*
34
+
35
+ routesの一覧
36
+ cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
37
+ new_user_registration GET /users/sign_up(.:format) devise/registrations#new
38
+ edit_user_registration GET /users/edit(.:format) devise/registrations#edit
39
+ user_registration PATCH /users(.:format) devise/registrations#update
40
+ PUT /users(.:format) devise/registrations#update
41
+ DELETE /users(.:format) devise/registrations#destroy
42
+ POST /users(.:format) devise/registrations#create
43
+ root GET / prototypes#index
44
+
34
45
  ここに言語名を入力
35
46
  ruby,html
36
47
  ソースコード

2

マークダウンしました

2020/10/22 04:56

投稿

yozakura10
yozakura10

スコア8

title CHANGED
File without changes
body CHANGED
@@ -13,10 +13,10 @@
13
13
  routes.rb
14
14
  Rails.application.routes.draw do
15
15
  devise_for :users
16
- root to: "prototypes#index"
16
+ root to: "prototypes#index"
17
17
  end
18
18
 
19
- prototypes_controllerclass
19
+ prototypes_controllerclass
20
20
 
21
21
  def index
22
22
 
@@ -28,9 +28,9 @@
28
28
  <h2 class="page-heading">ユーザー新規登録</h2>
29
29
  <%= devise_error_messages! %>
30
30
 
31
- <%= form_with model: @user, url: user_registration_path, local: true do |f| %>
31
+ <%= form_with model: @user, url: user_registration_path, local: true do |f| %>
32
32
  もしくは
33
- <%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
33
+ <%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>
34
34
  ここに言語名を入力
35
35
  ruby,html
36
36
  ソースコード

1

追加コードを入れました

2020/10/22 04:29

投稿

yozakura10
yozakura10

スコア8

title CHANGED
File without changes
body CHANGED
@@ -10,6 +10,24 @@
10
10
  エラーメッセージ
11
11
  No route matches [GET] "/users"
12
12
  ### 該当のソースコード
13
+ routes.rb
14
+ Rails.application.routes.draw do
15
+ devise_for :users
16
+ root to: "prototypes#index"
17
+ end
18
+
19
+ prototypes_controllerclass
20
+
21
+ def index
22
+
23
+ end
24
+
25
+ end
26
+
27
+ <div class="form__wrapper">
28
+ <h2 class="page-heading">ユーザー新規登録</h2>
29
+ <%= devise_error_messages! %>
30
+
13
31
  <%= form_with model: @user, url: user_registration_path, local: true do |f| %>
14
32
  もしくは
15
33
  <%= link_to "新規登録", new_user_registration_path, class: :nav__btn %>