Well I left () of the end of that (ie should be reload()).
How are you calling the controller action. If you’re not making an
ajax request this will never work (and if you are, don’t use
the :update option)
Shame on me. I forgot the ajax request.
But what do you mean with “don’t use the :update option”?
link_to_remote etc… can take an :update option (the id of a dom
element to update). You shouldn’t use this option at the same time as
rjs (since this disallows execution of the javascript, it will just be
dumped into the dom element.
Shame on me. I forgot the ajax request.
But what do you mean with “don’t use the :update option”?
link_to_remote etc… can take an :update option (the id of a dom
element to update). You shouldn’t use this option at the same time as
rjs (since this disallows execution of the javascript, it will just be
dumped into the dom element.
Ah ok. Everything works fine now!
Thank you for your great help, Robert!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.