Skip to content
handicraft_ujs is a jQuery replacement for Prototype/script.aculo.us on Rails, and it's unobtrusive and accessible.
JavaScript Ruby
Pull request Compare This branch is 1 commit ahead of ihower:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
javascripts
lib
.gitignore
LICENSE
README
handicraft_ujs.gemspec
init.rb

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
Something went wrong with that request. Please try again.