我的Rails应用程序没有加载因某种原因未定义的方法 '捕获' 与Postmarkdown红宝石宝石
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
它是集合或@collection? – 2013-04-15 06:38:37