Monday, January 23, 2006

AJAX on Rails

Put in head

<%= javascript_include_tag "prototype" %>




And then in body



<%= link_to_remote("Show the AJAX",
:update => 'mydiv',
:url => { :action => :new }) %>

This text will be changed



0 Comments:

Post a Comment

<< Home

eXTReMe Tracker