of code in your layout, a plugin, and one small enhancement to the
helpers. Something like this:
<% form_remote_tag :controller => ‘foo’, :action => ‘bar’,
:unobtrusive => true %>
But which still acts as an ajax form? You would simply handle the
response for ajax and non ajax requests using Rails’ responds_to
page elements in a Behaviour-like fashion, but using pure Ruby,
Sorry to tease. Stay tuned, we have something very cool to show off in
the next day or two. You will be able to find more information on
http://opensource.agileevolved.com in days to come, or stay tuned to
my blog tomorrow for more.
Apologies for the blatant promotion but we think people will like
this. People have asked for unobtrusive JS in Rails for a while. Could
it be here at last?