質問編集履歴
1
情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -157,3 +157,33 @@
|
|
157
157
|
end
|
158
158
|
|
159
159
|
```
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
###ログ
|
166
|
+
|
167
|
+
```ここに言語を入力
|
168
|
+
|
169
|
+
ActionView::Template::Error (uninitialized constant Micropost::Safe):
|
170
|
+
|
171
|
+
1: <% if micropost.saved_by? current_user %>
|
172
|
+
|
173
|
+
2: <%= link_to "クリップ(User-to-Shop)をやめる", micropost_saves_path(micropost.id), method: :delete, :id => "saves_ajax_#{micropost.id}", remote: true %>
|
174
|
+
|
175
|
+
3: <% else %>
|
176
|
+
|
177
|
+
4: <%= link_to "クリップ(User-to-Shop)", micropost_saves_path(micropost.id), method: :post, :id => "saves_ajax_#{micropost.id}", remote: true %>
|
178
|
+
|
179
|
+
app/models/micropost.rb:98:in `saved_by?'
|
180
|
+
|
181
|
+
app/views/saves/_save_links.html.erb:1:in `_app_views_saves__save_links_html_erb__1116921635009128905_54780520'
|
182
|
+
|
183
|
+
app/helpers/users_helper.rb:75:in `user_saves'
|
184
|
+
|
185
|
+
app/views/microposts/_link.html.erb:10:in `_app_views_microposts__link_html_erb___1313612887524713522_49694880'
|
186
|
+
|
187
|
+
app/views/microposts/show.html.erb:31:in `_app_views_microposts_show_html_erb__172594646965366599_53457720'
|
188
|
+
|
189
|
+
```
|