1

localhost:3000/blog 抛出以下错误

 NoMethodError in Refinery/blog/posts#index

Showing C:/Ruby193/lib/ruby/gems/1.9.1/gems/refinerycms-blog-2.0.4/app/views/refinery/blog/posts/index.html.erb where line #2 raised:

undefined method `content_for' for nil:NilClass

Extracted source (around line #2):

<% content_for :body_content_left do %>
 <%= raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) if Refinery::Pages.default_parts.any? %>
  <% if @posts.any? %>
    <section id="blog_posts">

我也按照网上许多人的建议执行了 rake db:seed 命令,但没有运气。

4

0 回答 0