2011-07-24 53 views
0
ActionView::MissingTemplate in Devise/sessions#new 

Showing /app/views/layouts/application.html.erb where line #36 raised: 

Missing partial devise/sessions/rightsidediv with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en, :en]} in view paths "/app/views", "/home/user1/.rvm/gems/ruby-1.9.2-p180/gems/devise-1.4.2/app/views" 

設計/會話我有這樣的application.html.erb:::的ActionView在MissingTemplate#新

<%= render :partial => "rightsidediv" %> 

的_rightsidedive.html.erb是/人次/職位/

回答

-1

路徑添加到您的包括:

<%= render :partial => "/views/posts/rightsidediv" %> 
+0

我仍然得到錯誤 – railshero

+0

現在有什麼錯誤? –

+0

這不是渲染局部圖像的正確方法。您只需編寫<%= render「partialName」%>您只需確保您的部分位於正確的位置。 – Arel

相關問題