This project is archived and is in readonly mode.
UJS fail to render partial
-
Harry Brundage
... store/cart with {:formats=>[:js]} in view ..._cart.html.erbRails is looking for _cart.erb or _cart.js.erb, since is a JS format request it won't use the HTML format helper I think. Try renaming _cart.html.erb to _cart.erb, or creating another version specifically for your JS requests in _cart.js.erb.
-
Trung Lê
renaming it to _cart.erb works. But still this behaviour is very strange. Is it just introduced in latest Rails changes?
-
José Valim
- Assigned user set to Yehuda Katz (wycats)
- Milestone cleared.
-
Erik St. Martin
- Assigned user changed from Yehuda Katz (wycats) to Ryan Bigg
This is expected behavior as rails wants to render the correct partial based on the current format.
please mark as invalid.
-
Ryan Bigg
- State changed from new to invalid