Skip to content

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

Notifications You must be signed in to change notification settings

ihower/handicraft_ujs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Author:: Wen-Tien Chang([email protected]) && Kang-min Liu([email protected])
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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published