I have looked at several tutorials involving rails 3 and jquery. The tutorial at http://c.kat.pe/post/how-to-use-jquery-for-rails-3/ looked promising. However, I get the errors of document.on is not a function and $("a[data-remote=true]").livequery is not a function
I get the feeling that I should look at another tutorial or just use jquery raw and not install a ruby gem for jquery. Any advice? Thanks!
Regarding the jquery-gem: I have stopped using it. I recall on a couple of occasions that it failed to copy over the rails.js file correctly after I ran the rake config command. That might have happened to you here. Perhaps it’s copied the file over with a different name..
Anyway, there are better ways to do jquery imo:
Option 3 generates code that uses options 1 and 2, and makes sure that your app resorts to a local version of jquery in the event that the google api link is down.
Anyway, here’s a link to something that looks quite promising – A guy is building a website and documenting how he did it – there are a few instances of jquery use, most notably here and here in a post titled Ajax Forms