Posts Tagged ‘IRC’
jQuery on Rails
So, I really like jQuery and it’s clever extensions of bad old javascript. So, obviously, I’ve been looking at ways to integrate it with Ruby on Rails.
Now, me being a RoR newbie, I didn’t realize that it has it’s very own ajax-y extension to Javascript, namely, Prototype. And while I’m sure it’s very powerful and extensible and all that, my thoughts on it can be summed up in a quote from Yehuda Katz’s excellent blog post on this topic:
In fact, the difference in sensibilities [between Prototype and jQuery] is very similar to the difference in sensibilities between Java and Ruby, so it’s ironic that the Rails community has embraced Prototype so completely.
Ya.
So, of course, I now need to find a way to integrate jQuery with Rails. Katz’s jQuery on Rails project mentioned in the above post seemed promising, but I couldn’t find any live examples anywhere. So I turned to the always,-well-not-really-but-usually useful IRC.
stevenbristol on #jQuery said that no, no ones’s sure of what happened to joR (that abbreviation, as far as I can tell, is new. It should be interesting if it takes off in the same way RoR did.) He walked me through getting jQuery and Prototype to play nicely, and pointed me to his (brand-spanking) new blog, http://b.lesseverything.com/. As of posting, it has exactly one post, which is his introduction. He says those steps for getting jQuery to play nicely with Prototype will be posted there in a few days, so I won’t steal his thunder.
Anyway, I have just committed revision 12 of my ITGS project, now with jQuery, a cleaned up stylesheet, and a global application layout.
To finish off, some very basic jQuery goodness!
[Edit] WordPress doesn’t allow me to use Javascript. I understand their reasons, but still…
[Edit*2] Part two of this saga is at jQuery on Rails, pt 2



