質問編集履歴

3

内容修正

2018/08/17 09:04

投稿

messy1019
messy1019

スコア18

test CHANGED
File without changes
test CHANGED
@@ -12,19 +12,19 @@
12
12
 
13
13
  .row
14
14
 
15
- .profile-cover-image
16
-
17
15
  = form_for(@user, html: { method: :put }) do |f|
18
16
 
19
- - if @user.profile_cover_image?
17
+ .profile-cover-image
20
18
 
21
- = image_tag @user.profile_cover_image.url
19
+ - if @user.profile_cover_image?
22
20
 
23
- - else
21
+ = image_tag @user.profile_cover_image.url
24
22
 
25
- = image_tag("/images/icon/no-image.png")
23
+ - else
26
24
 
25
+ = image_tag("/images/icon/no-image.png")
26
+
27
- = f.file_field :profile_cover_image
27
+ = f.file_field :profile_cover_image
28
28
 
29
29
  %aside.col-md-4
30
30
 
@@ -40,7 +40,9 @@
40
40
 
41
41
  = f.file_field :profile_image
42
42
 
43
+ / %h3.user-nickname= @user.nickname
44
+
43
- = f.text_field :nickname, autofocus: true, class: 'form-control', autocomplete: "nickname"
45
+ = f.text_field :nickname, autofocus: true, class: 'form-control user-nickname', autocomplete: "nickname"
44
46
 
45
47
  .self-introduction
46
48
 
@@ -54,13 +56,15 @@
54
56
 
55
57
  = f.text_field :self_introdunction
56
58
 
57
- %section.stats.grid-cell
59
+ %section.stats.grid-cell
58
60
 
59
- = render 'shared/stats'
61
+ = render 'shared/stats'
60
62
 
61
- = link_to 'キャンセル', user_path(current_user), class: 'btn btn-primary', :id => "button7"
63
+ = link_to 'キャンセル', user_path(current_user), class: 'btn btn-primary', :id => "button7"
62
64
 
63
- = f.submit '変更を保存', user_path(current_user), class: 'btn btn-primary', :id => "button8"
65
+ = f.submit '変更を保存', user_path(current_user), class: 'btn btn-primary', :id => "button8"
66
+
67
+
64
68
 
65
69
  ```
66
70
 

2

内容修正

2018/08/17 09:04

投稿

messy1019
messy1019

スコア18

test CHANGED
File without changes
test CHANGED
@@ -86,4 +86,8 @@
86
86
 
87
87
  ```
88
88
 
89
+
90
+
91
+ 結局のところエラーは解消できず、doを上記で追記することも合っているのかわからない状態です。
92
+
89
93
  もし、お分かりになる方がいらっしゃいましたら教えて頂けれと思います。

1

内容修正

2018/08/17 08:58

投稿

messy1019
messy1019

スコア18

test CHANGED
File without changes
test CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
  = f.file_field :profile_image
42
42
 
43
- %h3.user-nickname= @user.nickname
43
+ = f.text_field :nickname, autofocus: true, class: 'form-control', autocomplete: "nickname"
44
44
 
45
45
  .self-introduction
46
46