Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // views/reviews/create.js.erb
- $("#new_review").before('<div id="flash_notice"><%= escape_javascript(flash.delete(:notice)) %></div>');
- $("#reviews_count").html("<%= pluralize(@review.product.reviews.count, 'Review') %>");
- $("#reviews").append("<%= escape_javascript(render(:partial => @review)) %>");
- $("#new_review")[0].reset();
Add Comment
Please, Sign In to add comment