Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (21 sloc) 0.971 kB
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
Jump to Line
Something went wrong with that request. Please try again.