2017-10-15 88 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)来到这里的每个人都有用。

相关问题