ihower / handicraft_ujs

handicraft_ujs is a jQuery replacement for Prototype/script.aculo.us on Rails, and it's unobtrusive and accessible.

This URL has Read+Write access

ihower (author)
Tue Oct 06 01:55:46 -0700 2009
commit  228d3da145fa03e05cb239aae8aa3fc1f08d4187
tree    e297ad5ca9723c13d86245f461b47275f571fbd1
parent  2f3d02d03e31f0c9224ab89cbcafed15ef44e8a1
name age message
file README Thu May 21 02:24:54 -0700 2009 Add input tag support [ihower]
file init.rb Mon May 18 11:03:15 -0700 2009 first commit, extract from handicraft-interfaces [ihower]
directory javascripts/ Tue Oct 06 01:55:46 -0700 2009 fixes ajax post/delet/put in handicraft.js [ihower]
directory lib/ Mon May 18 11:03:15 -0700 2009 first commit, extract from handicraft-interfaces [ihower]
README
Author:: Wen-Tien Chang(ihower@handlino.com) && Kang-min Liu(gugod@handlino.com)
Copyright:: Copyright (c) 2009 Handlino Inc.
Licensed under the MIT: http://www.opensource.org/licenses/mit-license.php

handicraft_ujs is a jQuery replacement for Prototype/script.aculo.us on Rails, and it's unobtrusive and accessible.

== usage example

1.

link_to_remote 'foobar', :url => items_path, :method => :post

becomes

link_to 'foobar', items_path, :class => 'h-post'

2.

remote_form_for item , :url => item_path(item) , :html => { :method => :put }

becomes

form_for item ,item_path(item) , :html => { :method => :put, :class => 'h-put' }

3.

button_to_remote 'foobar', :url => items_path, :method => :get

becomes

button_to 'foobar', items_path, :method => 'get', :class => 'h-get'


more example please see http://github.com/ihower/handicraft-interfaces

== thanks

* http://blog.lawrencepit.com/2008/09/04/unobtrusive-jquery-rails/
* http://ennerchi.com/projects/jrails