2017-10-15 110 views
0

我有一個老的Rails應用程序,它在開發過程中工作得很完美,但是一旦推到heroku,我得到錯誤 ActionView :: Template :: Error(v1_retired): 這裏是鏈接到該應用程序的repoActionView :: Template :: Error(v1_retired):

感謝任何人的幫助提前。

當我導航到應用程序的帖子路徑時,錯誤開始。 Heroku的日誌顯示:

2017-10-15T06:15:40.681364+00:00 app[web.1]: Rendered posts/index.html.erb within layouts/application (242.1ms) 
2017-10-15T06:15:40.684606+00:00 heroku[router]: at=info method=GET path="/posts" host=palmettostudios.herokuapp.com request_id=7cef0fd8-3df4-4eac-8236-499f871c4949 fwd="61.68.174.8" dyno=web.1 connect=1ms service=255ms status=500 bytes=1669 protocol=https 
2017-10-15T06:15:40.682377+00:00 app[web.1]: Completed 500 Internal Server Error in 247ms (ActiveRecord: 8.3ms) 
2017-10-15T06:15:40.683956+00:00 app[web.1]: 
2017-10-15T06:15:40.683958+00:00 app[web.1]: ActionView::Template::Error (v1_retired): 
2017-10-15T06:15:40.683959+00:00 app[web.1]:  27:    <p><%= link_to 'Read Full Post', post_path(post), class:'pull-right btn btn-xs btn-link' %></p> 
2017-10-15T06:15:40.683960+00:00 app[web.1]:  28:   </div> 
2017-10-15T06:15:40.683960+00:00 app[web.1]:  29:   <div class='col-md-4 col-xs-12 post-image'> 
2017-10-15T06:15:40.683961+00:00 app[web.1]:  30:    <%= image_tag(post.image.url, class:'pull-right img img-responsive img-rounded') if post.image? %> 
2017-10-15T06:15:40.683962+00:00 app[web.1]:  31:   </div> 
2017-10-15T06:15:40.683962+00:00 app[web.1]:  32:  <% end %> 
2017-10-15T06:15:40.683963+00:00 app[web.1]:  33: </div> 
2017-10-15T06:15:40.683964+00:00 app[web.1]: app/views/posts/index.html.erb:30:in `block in _app_views_posts_index_html_erb___362288039534911980_70062267701880' 
2017-10-15T06:15:40.683964+00:00 app[web.1]: app/views/posts/index.html.erb:21:in `_app_views_posts_index_html_erb___362288039534911980_70062267701880' 
2017-10-15T06:15:40.683965+00:00 app[web.1]: 

回答

0

我也只是跑進了我的一個老的Rails應用程序相同的問題。

對我來說,它與使用現在已棄用的gem paperclip-dropbox有關,依賴於Dropbox的retired API v1

希望這些信息對於通過搜索非描述性錯誤ActionView::Template::Error (v1_retired)來到這裏的每個人都有用。

相關問題