- Author
-
Wen-Tien Chang([email protected]) && Kang-min Liu([email protected])
- Copyright
-
Copyright © 2009 Handlino Inc.
Licensed under the MIT: 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 github.com/ihower/handicraft-interfaces