2013-04-15 121 views
0

我的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

+0

它是集合或@collection? – 2013-04-15 06:38:37

回答

1

似乎app/posts /中的一個或多個文件不符合PostMarkdown所需的文件名格式 。請參閱我們的自述文件中的 示例。

請檢查GitHub的項目問題:

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

+0

感謝您的回答。儘管我遇到了與heroku相同的問題。 'rails s'和localhost都很好用,但是一旦我部署到heroku就會發生同樣的'捕獲'錯誤。即使在'git push heroku master'之後 - 如果您有任何想法,請告訴我!謝謝 –

+0

不知道,你什麼時候收到Heroku的錯誤?我可以看到日誌嗎? – Abram