Description
我从最新的homeland-docker进行部署后,发现发帖的时候对于非图片格式的文件拖拽上传保存后,会导致整个论坛的社区页面无法打开,后台日志报错如下
Processing by TopicsController#index as HTML
I, [2018-06-02T04:45:56.925853 #7] INFO -- : User filter_readed_topics (0.480102ms)
I, [2018-06-02T04:45:56.926387 #7] INFO -- : Rendering topics/index.html.erb within layouts/application
I, [2018-06-02T04:45:56.927502 #7] INFO -- : Rendered shared/_index_sections.html.erb (0.5ms) [cache hit]
I, [2018-06-02T04:45:56.927589 #7] INFO -- : Rendered topics/_node_selector.html.erb (0.7ms)
I, [2018-06-02T04:45:56.928158 #7] INFO -- : Rendered topics/_node_info.html.erb (1.3ms)
I, [2018-06-02T04:45:56.929337 #7] INFO -- : Rendered collection of topics/_topic.html.erb [1 times] (1.0ms)
I, [2018-06-02T04:45:56.932560 #7] INFO -- : Rendered collection of topics/_topic.html.erb [4 times] (3.0ms)
I, [2018-06-02T04:45:56.932653 #7] INFO -- : Rendered topics/index.html.erb within layouts/application (6.2ms)
I, [2018-06-02T04:45:56.932831 #7] INFO -- : Completed 401 Unauthorized in 18ms (ActiveRecord: 3.7ms)
F, [2018-06-02T04:45:56.937017 #7] FATAL -- :
F, [2018-06-02T04:45:56.937066 #7] FATAL -- : ActionView::Template::Error (The asset "avatar/md.png" is not present in the asset pipeline.):
F, [2018-06-02T04:45:56.937210 #7] FATAL -- : 1: <% cache([topic, topic.user_avatar_raw, suggest]) do %>
2:
3:
4: <%= user_avatar_tag(topic.user, :md) %>
5:
6:
7:
F, [2018-06-02T04:45:56.937252 #7] FATAL -- :
F, [2018-06-02T04:45:56.937285 #7] FATAL -- : app/helpers/users_helper.rb:45:in
user_avatar_tag' app/views/topics/_topic.html.erb:4:in
block in _app_views_topics__topic_html_erb___1108729398735021699_47274089990780'app/helpers/application_helper.rb:125:in
cache' app/views/topics/_topic.html.erb:1:in
_app_views_topics__topic_html_erb___1108729398735021699_47274089990780'app/views/topics/index.html.erb:17:in `_app_views_topics_index_html_erb__4110334719824805643_47274090564580'
Activity