This project is archived and is in readonly mode.

#4090 ✓invalid
Trung Lê

UJS fail to render partial

Reported by Trung Lê | March 2nd, 2010 @ 12:13 PM | in 3.0.2

I upgraded to latest v3.0.1 beta (GitHub) today and my jQuery code no longer works. I got a script like this in add_to_cart.js.erb

$("#cart").html("<%= escape_javascript(render :partial => "cart", :object => @cart) %>");

I got following error:

ActionView::Template::Error (Missing partial store/cart with {:formats=>[:js]} in view paths "/home/mojo/Sites/depot/app/views") ...

even though my _cart.html.erb is present.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages