I’m having issues with having the AJAX refresh the partial cart. I have done some tinkering on the side including some different model names, but up through iteration F1, all functional tests are working
I’ve gone through all prior steps including F2. When I click the ‘Add to Cart’ button, nothing happens. When I check the server log, I see the below:
ActionView::Template::Error (undefined local variable or method
∩╗┐page' for #<
1: ∩╗┐page.replace_html('team', render(@team))
app/views/members/create.js.rjs:1:in block in app_views_members_create_js_rj
Here are the contents of my create.js.rjs: page.replace_html(‘team’, render(@team))
Clearly the format.js within the line_items_controller and the :remote=>true addition in the store/index are working as it has found the create.js.rjs. However it seems like it’s having trouble processing the js.rjs. It looks like it’s processing page oddly as it has a bunch of funky symbols.
Any assistance is greatly appreciated!