`
dashi129
  • 浏览: 37970 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

ActionView::MissingTemplate in Store#add_to_cart

阅读更多
ActionView::MissingTemplate in Store#index
Showing layouts/store.rhtml where line #18 raised:

Missing template store/_cart.html.erb in view path D:/ruby/depot/app /views

Extracted source (around line #18):

15:             <div id="columns">
16:                     <div id="side">
17:                       <div id="cart">
18:                         <%= render(:partial => "cart" ,bject => @cart) %>
19:                       </div>
20:                             <a href="http://www....">Home</a><br />
21:                             <a href="http://www..../faq">Questions</a><br />


RAILS_ROOT: D:/ruby/depot

解决方案:将_cart.rhtml.erb 改名为_cart.html.erb (个人粗心犯错,以后注意)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics