More AjaxScaffold updates
Posted by Richard White Sat, 15 Apr 2006 00:54:38 GMT
AjaxScaffold has been deprecated in favor of ActiveScaffold
I quietly released a couple new bug fix versions today: 3.0.3 and 3.0.4. Here’s what was fixed:
- Changed destroy.rjs to hide the loading indicator only if that call was not @successful. This was causing an ‘Element not found’ error on the client side since destroy, when successful, would have removed the DOM subtree the loading indicator was in.
- The pagination loading indicator id was not being namespaced using the :scaffold_id. This meant that if you had multiple scaffolds on the page then navigating to a page on one scaffold would show ALL indicators on that page.
- Revisited, and hopefully fixed for good, the issues with controllers in subdirectories (either by generating with controllers named admin/widget or admin::widget). I had to make it so that all :controller values for links and such had the full path name to the controller (eg /admin/widget).
Based on the feedback I’ve recieved it seems that people want to know how to modify the scaffolds to work with associations: belongs_to and has_many. There is already some discussion of these issues over on the forum and I’m working on putting together a demo and a writeup for this sort of thing.