質問編集履歴
1
viewを追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -130,7 +130,40 @@
|
|
130
130
|
= f.file_field :image, class: 'hidden'
|
131
131
|
= f.submit 'Send', class: 'form__submit'
|
132
132
|
```
|
133
|
+
```
|
134
|
+
_side_bar/html/haml
|
133
135
|
|
136
|
+
.chat-side
|
137
|
+
.side-header
|
138
|
+
.side-header__box
|
139
|
+
%p.side-header__box_username
|
140
|
+
= current_user.name
|
141
|
+
%ul.side-header__box__menu
|
142
|
+
%li.side-header__box__edit-user
|
143
|
+
= link_to new_group_path do
|
144
|
+
= icon('fas', 'edit')
|
145
|
+
%li.side-header__box__new-group
|
146
|
+
= link_to edit_user_path(current_user) do
|
147
|
+
= icon('fas', 'cog', class: 'icon')
|
148
|
+
|
149
|
+
.groups
|
150
|
+
- current_user.groups.each do |group|
|
151
|
+
.group
|
152
|
+
= link_to '#' do
|
153
|
+
.group__name
|
154
|
+
= group.name
|
155
|
+
.group__message
|
156
|
+
メッセージはまだありません。
|
157
|
+
|
158
|
+
```
|
159
|
+
```
|
160
|
+
index/html/haml
|
161
|
+
|
162
|
+
.wrapper
|
163
|
+
= render "shared/side_bar"
|
164
|
+
= render "shared/main_chat"
|
165
|
+
|
166
|
+
```
|
134
167
|
### 試したこと
|
135
168
|
|
136
169
|
routesやcontrollerの記述やindexアクションに対して色々と試行錯誤したのですが内容がsyntaxエラーになるだけで根本のエラーが解決できません。。。
|