Location.reload not working in success in ajax+jquery+rails


I am  using location.reload  inside success like

url: “/url”,
data: ‘data=’+data,
dataType: ‘script’,
success: function() {


if i use in this way its not even comming inside success how to reload
the page in this case?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs