Hi,
A table shows dynamic data. After each insert or destroy, we need to
refresh the whole table. I looked into on_create.js.rjs. I want to
replace
page.insert_html :top, active_scaffold_tbody_id, :partial =>
'list_record', :locals => {:record => @record}
to something like,
options = { :sorting => active_scaffold_config.list.user.sorting,
:per_page => active_scaffold_config.list.user.per_page,
:page => active_scaffold_config.list.user.page }
@page = find_page(options)
@records = @page.items
page.replace_html active_scaffold_content_id, :partial => 'list'
But AS can't find method 'find_page', anyway to resolve this?
Thanks,
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.