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中有这个:
<%= render :partial => "rightsidediv" %>
_rightsidedive.html.erb位于/ views / posts /
中答案 0 :(得分:-1)
添加包含的路径:
<%= render :partial => "/views/posts/rightsidediv" %>