Devise / sessions中的ActionView :: MissingTemplate #new

时间:2011-07-24 03:36:30

标签: ruby-on-rails layout devise partial-views render

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 /

1 个答案:

答案 0 :(得分:-1)

添加包含的路径:

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