RefineryCMS - 博客页面错误

时间:2012-07-23 18:27:30

标签: ruby-on-rails refinerycms

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命令,但没有运气。

0 个答案:

没有答案