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
Put in head
<%= javascript_include_tag "prototype" %>
<%= link_to_remote("Show the AJAX",
:update => 'mydiv',
:url => { :action => :new }) %>
0 Comments:
Post a Comment
<< Home