I created a simple Ajax checkbox control that I plan to contribute to
scriptaculous (people seem to ask now and then), and it occurred to me
that the really nice way to do it would be to provide the controller
action as well - the developer could call something like
<%= remote_check_box (''checkbox-id'') %>
and we''d automatically update
session[:scriptaculous-checkbox-id]="true", or something like that.
The
same could work for InPlaceEditor. The way we do it today feels too
much like scaffolding.
Has anyone considered doing this? I suspect it''s easy to do, but there
are some potential pitfalls - right now, AFAIK, no plugin intercepts
URLs on their way to the controller.
Jay