0

Rails アプリが何らかの理由で読み込まれません

index.html.haml where line #4 raised:
undefined method `captures' for nil:NilClass

私の設定/ルート:

 postmarkdown :as => :blog
 root :to => 'posts#index'

私の投稿/index.html.haml

= render 'feed_link'

%section#posts
  - if collection.present?
    = render collection, :summary => true
    = paginate collection
  - else
    No posts found.

私はこの宝石を使用しています: https://github.com/ennova/postmarkdown

4

1 に答える 1

1

app/posts/ 内の 1 つまたは複数のファイルが、Postmarkdown で必要なファイル名形式に準拠していないようです。readme の例を参照してください。

github プロジェクトの問題を確認してください。

https://github.com/ennova/postmarkdown/issues/15

于 2013-04-15T06:41:43.993 に答える