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"

I have this in application.html.erb :

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

The _rightsidedive.html.erb is in /views/posts/

railshero
  • 153
  • 2
  • 8

1 Answers1

-1

add the path to your include:

<%= render :partial => "/views/posts/rightsidediv" %>
Kevin Tsoi
  • 1,807
  • 15
  • 16
  • This isn't the proper way to render a partial. You simply write <%= render "partialName" %> You just need to make sure your partials are in the right place. – Arel Mar 03 '13 at 05:34