Hi,
I have listings that are numbered. When I re-sort them, the first
page of results re-sorts fine in the database, but the second page is
ignored. How do I renumber all listings?
Also, though the first page is re-sorted fine in the database,
listings numbers do not update on the page. I''m inclined to have
an .rjs file that does a replace_html on all listings, but it would be
so much less data simply to have the listing numbers update.
Here is my code. The :after part is not working. redraw_listings is
an rjs that replaces all listings with the partial that creates them.
<%= sortable_element(''listing'', :tag => "div",
:constraint =>
false, :scroll => :window,
:url => { :action => "sort_by_position" , :id =>
@search_term.id }, :containment => [''listing''], :after
=> { :action =>
''redraw_listings''} ) %>
Any hints?
Thanks,
Charlie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---