activescaffold_sortable updated (with a delightful screencast)
After some long neglect, I finally had a reason to use the active_scaffold_sortable plugin again. Getting in to the code, I was ashamed at how broken it was. But, after about an hour of polishing and cleanup, it's good as new and ready to be used again.
Here's a screencast to show you exactly what it is:
See: activescaffold with sorted lists is fun!
Note: the urls for the repositories have been moved since this screencast was made. The new home for active scaffold repositories can be found here: http://github.com/activescaffold.
Labels: plugins rails
May 18, 2008 9:48 PM
Nicely Done. Better than Railscasts. top
May 19, 2008 3:01 AM
hi tim - thanks for the great plugin.
my routes.rb looks something like this:
map.namespace :admin do |a|
a.resources :pages, :active_scaffold => true, :active_scaffold_sortable => true
...
i had to add this to lib/config/sortable.rb to make it work:
ActionController::Resources::Resource::ACTIVE_SCAFFOLD_ROUTING[:collection][:reorder] = :post top
June 25, 2008 11:36 AM
Tim,
Thanks for the great work.
Quick question, using this plug-in: how do you move items between pages?
For instance if you display records in pages of 50, and you want to move the record in position 51 (first line of page 2) to position 50 (last line of page 1).
I really don't see any way to do this using this plugin. top
June 25, 2008 11:53 AM
The solution as stands is pagination is off by default. With rare exceptions you shouldn't have drag drop sortable on a really long list.
Perhaps a better solution would be to have a drop target at the bottom and top of active scaffold, which would place the item on the next page. top