Nezir Zahirović

Basic AJAX in Ruby on Rails - Problem not closing modal SOLVED!

Hi,

I checked this little ruby on rails and ajax  tutorial on "Basic AJAX in Ruby on Rails" and at the end I had a problem with 'Not closing a modal window after an update or delete product'.

As  I checked comments below tutorial I find that many people had the same problem, so I decide to write about a solution in my case.

As I try to write as many I can, codes from tutorials by myself and not do regular copy & paste, I made a mistake!

My mistake was in file _save.js.erb at line:

$(".product-index").htme("<%= escape_javascript(render 'index') %>")

I think you can see what is problem in my case "htme" but it should be "html"


SHARE
    Blogger Comment
    Facebook Comment

1 comments: