I am building an app in Rails 3.0.3 and Ruby 1.9.2. I have installed the jquery-rails gem and use jquery instead of prototype. I have a .js.erb will update the contents of the div tag but I need to call a function in the controller to get updated information for the div tag. Can someone provide an example or point me to one? I have tried the railscasts unobtrusive javascript tutorial but I can not get is to work for my situation.
Share
See How to make Ajax calls with Rails 3 using remote_function? and my comment there. The answer of Ibz, adding :remote, only makes sense for form elements and even then is only a part of the story.