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" , :object => @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 (个人粗心犯错,以后注意)
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" , :object => @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 (个人粗心犯错,以后注意)