I probably should have mentioned that I'm using Rails 3.0.x, so I have to use ActiveScaffold 3.0.26 (right?). That version doesn't have _refresh_list.js.erb.
I did just now figure out a workaround. Since I'm embedding the scaffold with an ajax link, I had to create a "list_names" action to call, which simply renders the scaffold with:
<%= render :active_scaffold => 'composite_names' %>
So, I just made a "toggle_deleted" action, which renders my list_names action to a string, and then replaces the whole active scaffold:
def toggle_deleted
as_table = render_to_string(:action => 'list_names', :layout => false).html_safe
render :update do |page|
page.replace active_scaffold_id, as_table
end
end
The action link is using {:type => :collection, :position => false, :inline => false}. Inline has to be false or the render :update fails, and any other kind of rendering embeds the text into the inline adapter.
Jim