Posts Tagged ‘rails’
jQuery on Rails, pt 3
Well, jQuery 1.1 is out.
It has native jQuery.noConflict to simplify the integration into other systems.
Unfortunately, I don’t think joR is out yet. The launchpad still doesn’t point anywhere.
On a related note, my other two posts on joR are in the top 5 for a google search for ‘jQuery on Rails’! Somehow! I don’t know how! Yea!
Sorry.
You there, Steve? No more jQuery.js hacking necessary!
jQuery on Rails, pt 2
There ya go. Steve, over at b.lesseverything.com, has given to the public the secret to unlocking the awesome power of jQuery within the also awesome power of Ruby on Rails.
He has an excellent quote which I would like to reproduce in all its excellence here:
[P]rototype now makes me feel like I feel when I am writing c# code, I’ll leave it to your imagination what that feels like.
Go. Read the post. And then chuckle to yourself as you imagine all the new, cool stuff you can do.
Ha… world domination, here I come!
[Edit] Part three of this saga is at jQuery on Rails, pt 3
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



