public
Fork of pointcom/mootools-on-rails
Description: mootools-on-rails with Autocompleter from http://digitarald.de/project/autocompleter/
Homepage: http://blogs.onrails.com.ar
Clone URL: git://github.com/peterpunk/mootools-on-rails.git
name age message
file README Loading commit data...
file Rakefile Tue Apr 15 03:46:21 -0700 2008 first commit [pointcom]
file about.yml Tue Apr 15 03:46:21 -0700 2008 first commit [pointcom]
directory assets/
file init.rb Tue Apr 15 03:46:21 -0700 2008 first commit [pointcom]
file install.rb Tue Apr 15 03:46:21 -0700 2008 first commit [pointcom]
directory lib/
directory tasks/
directory test/
file uninstall.rb Tue Apr 15 03:46:21 -0700 2008 first commit [pointcom]
README
= Mootools On Rails with Autocompleter


== How to install

Just follow these three steps :

1. You must run the following task : 
  rake mootools_on_rails:install

2. You must add the following line in your layout :
  <%= javascript_include_tag :mootools %>

3. You must add the following line in your RAILS_ROOT/config/routes.rb
  ActionController::Routing::Routes.draw do |map|
   ...
    MootoolsOnRails.routes
    ...
  end
  
That's all !


== How to use

=== Event behaviour

In your view :

  <% add_event('link', 'click') do |page|
    page.alert('coucou div 2')
   end %>
  
  <%= content_tag(:a, "My Link", :id => 'link') %>
  


== More documentations

http://dev.kawooa.org/projects/mootools-on-rails/wiki/Mootools+On+Rails


== Credits

* This plugin is inspired by the "YUI On Rails" plugin by "PJ Hyett".
* The unobtrusive_javascript plugin is by Luke Redpath (http://www.lukeredpath.co.uk) and Dan Webb 
(http://www.vivabit.com/bollocks).