I use the Twitter gem (http://twitter.rubyforge.org/) and it works great. However, I was hoping to understand how to "run it in the background" after the page loads.
Currently, the user will need to wait until the page is displayed, as the pearl of Twitter is working on requesting some tweets. After Twitter receives a response, the page loads.
However, I was hoping to display the “loading” gif in the “div” tag of Twitter, and after receiving the information on Twitter, replace this gif with the appropriate content.
I read a few posts on how to use the form and the :: = = true tag on the form to make AJAX calls that won’t "reload" the corresponding page, but I don’t know if you want to force visitors to click the link to see Twitter tweets .
I am very green to chop rails, so any feedback would be greatly appreciated. Thanks!!
Ruby version: 1.8.7 Rails version: 3.0.9
source share