¡@

Home 

javascript Programming Glossary: line_items

Rails 3.2.2 not executing rjs

http://stackoverflow.com/questions/10148134/rails-3-2-2-not-executing-rjs

without reloading the page. Here is the create action in line_items_controller.rb def create @cart current_cart product Product.find.. end And here is my RJS file create.js.rjs under app views line_items page.alert 'NO PROBLEM HERE' page.replace_html 'cart' render.. the button that starts this action button_to 'Add to Cart' line_items_path product_id product remote true I get the following error..

The AJAX request cannot see the effect without refresh the browser in Rails

http://stackoverflow.com/questions/12220816/the-ajax-request-cannot-see-the-effect-without-refresh-the-browser-in-rails

just like him. And we all use button_to 'Add to Cart' line_items_path product_id product remote true to send an AJAX request.. But the cart did not add anything. log result Rendered line_items _line_item.html.erb 4.3ms Rendered carts _cart.html.erb 8.0ms.. 4.3ms Rendered carts _cart.html.erb 8.0ms Rendered line_items create.js.erb 8.8ms That's the index.html.erb we send the AJAX..