I am building an application in Rails 3.0.3 and Ruby 1.9.2. I installed jquery-rails gem and instead of jQuery instead of prototype. I have .js.erb will update the contents of the div tag, but I need to call the function in the controller to get the updated information for the div tag. Can someone give an example or point me to it? I tried railscasts an unobtrusive javascript tutorial, but I can't get it to work for my situation.
source
share