This is a simple Rails plugin that works with Hobo.
It adds a bunch of tags to Hobo that instantiate various JQuery UI widgets.
Install with
ruby script/plugin install git://github.com/bryanlarsen/hobo-jquery.git
Link jQuery, jQuery-UI, and hobo-jQuery assets into your public directory:
rake hobo_jquery:link_jquery
rake hobo_jquery:link_assets
If you're on Windows, you can use the install_jquery and update_assets tasks instead.
To use, you need to include hobo-jquery and add the assets to your page. In your application.dryml:
<include src="hobo-jquery" plugin="hobo-jquery" />
<extend tag="page">
<old-page merge>
<custom-scripts:>
<hjq-assets/>
</custom-scripts>
</old-page>
</extend>
To install local documentation:
git submodule update --init
Hobo Jquery calls
jQuery.noConflict()
to avoid conflicts with prototype. $
is still bound to
prototype.js. To use jQuery, use jQuery
instead of $
.