我有一个旧的Rails应用程序,它在开发中完美运行但是一旦被推送到heroku,我就会收到错误 ActionView :: Template :: Error(v1_retired): 这是指向应用程序repo的链接。
提前感谢任何人的帮助。
当我导航到应用程序的帖子路径时,错误开始。 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 :(得分:0)
我也遇到了同样的问题,我的旧Rails应用程序。
对我来说,这与使用现已弃用的gem paperclip-dropbox
有关,后者依赖于Dropbox的retired API v1。
希望这些信息对于通过搜索非描述性错误ActionView::Template::Error (v1_retired)
来到这里的每个人都有用。