This project is archived and is in readonly mode.

#4197 ✓resolved
Hemant Patel

Missing Template errors with rjs

Reported by Hemant Patel | March 16th, 2010 @ 09:11 PM | in 3.0.2

I have following setup and i am getting missing template errors
class NotesController < ApplicationController

def new

  @note =
respond_to do |format|
   format.html # new.html.erb
   format.xml  { render :xml => @note }


$("#add-notes").after(<%= escape_javascript(render 'form') %>);

Error on the logs
ActionView::Template::Error (Missing partial notes/form with {:formats=>[:js], :locale=>[:en], :handlers=>[:builder, :rjs, :rhtml, :rxml, :erb, :haml]}

Even though there exist this file notes/_form.html.haml i am getting missing template errors when i try to render anything in the rjs file.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by