2011-05-10 62 views
2

我已經安裝了RefineryCMS及其幾個引擎(如博客)。一切工作正常,直到我安裝會員引擎。成員資格引擎無法正常工作

掙扎幾天後,我可以讓它「工作」。所謂「作品」我的意思是,我可以創建一個用戶,但因爲我安裝了它,我每次訪問主頁時,我收到以下錯誤:

undefined method `refinery_user?' 

提取的源(左右線#1):

1: <% if refinery_user? %> 
2: <% unless admin? # all required JS included by backend. %> 
3:  <% content_for :stylesheets, stylesheet_link_tag('refinery/site_bar') unless !!local_assigns[:exclude_css] %> 
4:  <%= yield(:stylesheets) unless local_assigns[:head] or local_assigns[:exclude_css] %> 

我對該方法「ctrl + click」,它確實存在!它具有以下代碼:

def refinery_user? 
    user_signed_in? && current_user.has_role?(:refinery) 
end 

奇怪的是,我已經把一個斷點上線,但該應用程序並沒有就此打住......

有誰知道這是怎麼回事?

回答

1

確保您/config/initializers/devise.rb文件是否存在,以及它包括以下(可能在底部):

config.router_name = :refinery